Skip to content

Commit 256d9b3

Browse files
committed
create class Tree with root equal to null
1 parent aab079f commit 256d9b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tree/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ class Node {
2626
return node.data !== data;
2727
});
2828
}
29+
}
30+
31+
class Tree {
32+
constructor() {
33+
this.root = null;
34+
}
2935
}

0 commit comments

Comments
 (0)