Solution to Flatten Binary Tree to Linked List by LeetCode

6 Jul

Question: https://oj.leetcode.com/problems/flatten-binary-tree-to-linked-list/ Question Name: Flatten Binary Tree to Linked List The recursive method is easy to understand.

The iterative solution should be more efficient.

Solution to Path Sum II by LeetCode

6 Jul

Question: https://oj.leetcode.com/problems/path-sum-ii/ Question Name: Path Sum II

Solution to Path Sum by LeetCode

6 Jul

Question: https://oj.leetcode.com/problems/path-sum/ Question Name: Path Sum

Solution to Minimum Depth of Binary Tree by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/minimum-depth-of-binary-tree/ Question Name: Minimum Depth of Binary Tree

Solution to Balanced Binary Tree by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/balanced-binary-tree/ Question Name: Balanced Binary Tree

Solution to Convert Sorted List to Binary Search Tree by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/ Question Name: Convert Sorted List to Binary Search Tree

Solution to Convert Sorted Array to Binary Search Tree by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ Question Name: Convert Sorted Array to Binary Search Tree

Solution to Binary Tree Level Order Traversal II by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/ Question Name: Binary Tree Level Order Traversal II Nearly the same as the Binary Tree Level Order Traversal. We only need to reverse the output.

Solution to Construct Binary Tree from Preorder and Inorder Traversal by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ Question Name: Construct Binary Tree from Preorder and Inorder Traversal

Solution to Construct Binary Tree from Inorder and Postorder Traversal by LeetCode

5 Jul

Question: https://oj.leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ Question Name: Construct Binary Tree from Inorder and Postorder Traversal