Introduction
I solved 298 algorithm on Leetcode.com, two more to go to reach 300 solved algorithms. This is the first time I learn to work on practice, allow myself develop good thinking process, develop the skills to a good problem solver.
Tree algorithms
I wrote three medium level tree algorithms, 222, 450, 662.
Medium level tree algorithms (solved 14, total 39, shared 12)
94. Binary Tree Inorder Traversal using stack
94. Binary Tree Inorder Traversal use recursive function
95. Unique Binary Search Trees II
98. Validate Binary Search Tree
102. Binary Tree Level Order Traversal submitted in 2015
102. Binary Tree Level Order Traversal submitted in 2018
105. Construct Binary Tree from Preorder and Inorder Traversal
106. Construct Binary Tree from Inorder and Postorder Traversal
113. Path Sum II
114. Flatten Binary Tree to Linked List
129. Sum Root to Leaf Numbers
222. Count Complete Tree Nodes
236. Lowest Common Ancestor of a Binary Tree
337. House Robber III
450. Delete Node in a BST
662. Maximum Width of Binary Tree
684. Redundant Connection union find using array
684. Redundant Connection using Dictionary<Int, HashSet>
No comments:
Post a Comment