Skip to content

Commit

Permalink
Fixed Formatting 0652-find-duplicate-subtrees.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ykhan799 authored Sep 28, 2024
1 parent 36f49c5 commit 4be041f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/0652-find-duplicate-subtrees.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var findDuplicateSubtrees = function(root) {
const makePreOrderStr = (node, str) => {
if(!node) return str + "-" + "null";

const str1 = makePreOrderStr(node.left, str + "-" +node.val);
const str1 = makePreOrderStr(node.left, str + "-" + node.val);
const str2 = makePreOrderStr(node.right, str1);

return str2;
Expand Down

0 comments on commit 4be041f

Please sign in to comment.