摘要:
Invert Binary TreeInvert a binary tree.Example 1 1 / \ / \2 3 => 3 2 / \ 4 4ChallengeDo it in recursion is accept... 阅读全文
摘要:
Reverse Linked ListReverse a linked list.ExampleFor linked list 1->2->3, the reversed linked list is 3->2->1ChallengeReverse it in-place and in one-pa... 阅读全文
摘要:
Binary Tree Postorder TraversalGiven a binary tree, return thepostordertraversal of its nodes' values.Given binary tree{1,#,2,3}, 1 \ 2 / ... 阅读全文
摘要:
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.Given binary tree{1,#,2,3}, 1 \ 2 / 3r... 阅读全文
摘要:
Binary Tree Preorder TraversalGiven a binary tree, return the preorder traversal of its nodes' values.Given: 1 / \ 2 3 / \4 5return [1,2,4,5... 阅读全文