All files / data-structures BinaryTree.ts

100% Statements 6/6
83.33% Branches 5/6
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 1046x 13x 13x 13x     13x      
export default class BinaryTree<T> {
  value: T | null = null;
  leftChild: BinaryTree<T> | null = null;
  rightChild: BinaryTree<T> | null = null;
 
  constructor(value: T) {
    this.value = value;
  }
}