Skip to content

Commit

Permalink
Add constructor for BinaryTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Semin Bae committed Jun 28, 2020
1 parent b012bc3 commit 17ee28f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Chapter15(Trees).js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
function BinaryTree() {
this._root = null;
}

BinaryTree.prototype.traverseInOrder = function() {
traverseInOrderHelper(this._root);

Expand Down

0 comments on commit 17ee28f

Please sign in to comment.