We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f49c5 commit 4be041fCopy full SHA for 4be041f
javascript/0652-find-duplicate-subtrees.js
@@ -20,7 +20,7 @@ var findDuplicateSubtrees = function(root) {
20
const makePreOrderStr = (node, str) => {
21
if(!node) return str + "-" + "null";
22
23
- const str1 = makePreOrderStr(node.left, str + "-" +node.val);
+ const str1 = makePreOrderStr(node.left, str + "-" + node.val);
24
const str2 = makePreOrderStr(node.right, str1);
25
26
return str2;
0 commit comments