Categorize scripts

This commit is contained in:
Tay Yang Shun
2017-09-20 15:29:22 +08:00
parent 2182a70770
commit 671b874b43
16 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,10 @@
function treeMirror(node) {
if (!node) {
return;
}
let temp = node.left;
node.left = node.right;
node.right = temp;
treeMirror(node.left);
treeMirror(node.right);
}