Skip to content

Commit fca0bba

Browse files
committed
Runtime: 205 ms (Top 56.30%) | Memory: 70.4 MB (Top 45.50%)
1 parent cbec20c commit fca0bba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/algorithms/C/Count Good Nodes in Binary Tree/Count Good Nodes in Binary Tree.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Runtime: 205 ms (Top 56.30%) | Memory: 70.4 MB (Top 45.50%)
2+
13
var goodNodes = function(root) {
24
let ans = 0;
35
const traverse = (r = root, mx = root.val) => {
@@ -11,4 +13,4 @@ var goodNodes = function(root) {
1113
}
1214
traverse();
1315
return ans;
14-
};
16+
};

0 commit comments

Comments
 (0)