Skip to content

Commit 08d8ab7

Browse files
author
Gonzalo Diaz
committed
[Hacker Rank] New common lib to build Binary Trees
1 parent 0f42047 commit 08d8ab7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/hackerrank/lib/Node.ts

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

0 commit comments

Comments
 (0)