Skip to content

Commit 19daa60

Browse files
authored
Merge pull request #504 from sir-gon/develop
[Hacker Rank] New common lib to build Binary Trees
2 parents 2cd0a65 + bf67068 commit 19daa60

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const jestConfig = {
2121
collectCoverageFrom: [
2222
'src/**/*.{js,jsx,ts}',
2323
'!src/**/*.tsx',
24+
'!**/lib/*.{js,jsx,ts}',
2425
'!**/?(*.)+(bruteforce-test).js?(x)'
2526
],
2627

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)