Skip to content

Commit 17ee28f

Browse files
author
Semin Bae
committed
Add constructor for BinaryTree
1 parent b012bc3 commit 17ee28f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Chapter15(Trees).js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
function BinaryTree() {
2+
this._root = null;
3+
}
4+
15
BinaryTree.prototype.traverseInOrder = function() {
26
traverseInOrderHelper(this._root);
37

0 commit comments

Comments
 (0)