Skip to content

Commit fc26e23

Browse files
author
Gonzalo Diaz
committed
[Hacker Rank] New common lib to build Binary Trees
1 parent 2cd0a65 commit fc26e23

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/hackerrank/lib/Node.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* istanbul ignore file */
2+
3+
export class Node {
4+
left;
5+
6+
right;
7+
8+
data;
9+
10+
constructor(data) {
11+
this.left = null;
12+
this.right = null;
13+
this.data = data;
14+
}
15+
}
16+
17+
export default { Node };

0 commit comments

Comments
 (0)