450. Delete Node in a BST
Consider cases
1. No Child elements then delete the node
2. If one child element replace the current node with a child
3. If two children then either pick the largest in left subtree or smallest in right sub tree.
1. No Child elements then delete the node
2. If one child element replace the current node with a child
3. If two children then either pick the largest in left subtree or smallest in right sub tree.
106. Construct Binary Tree from Inorder and Postorder Traversal
https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
540. Single Element in a Sorted Array
learn 461. Hamming Distance
https://leetcode.com/problems/hamming-distance/
learn 448. Find All Numbers Disappeared in an Array
https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/
learn - 62. Unique Paths
https://leetcode.com/problems/unique-paths
π² Planted one tree. Thanks @poppacalypse @HuaTweets
Thanks for motivating me to do this
learn: Kth Smallest Number in Multiplication Table
https://leetcode.com/problems/kth-smallest-number-in-multiplication-table/
368. Largest Divisible Subset
https://leetcode.com/problems/largest-divisible-subset/
1286. Iterator for Combination
Catch up with pals
203. Remove Linked List Elements
1413. Minimum Value to Get Positive Step by Step Sum
https://leetcode.com/problems/minimum-value-to-get-positive-step-by-step-sum/
update to monterey
1178. Number of Valid Words for Each Puzzle
https://leetcode.com/problems/number-of-valid-words-for-each-puzzle/
- Bit masking
- Trie data structure
- Bit masking
- Trie data structure
96. Unique binary search tree
https://leetcode.com/problems/unique-binary-search-trees/
https://www.youtube.com/watch?v=Ox0TenN3Zpg
https://www.youtube.com/watch?v=Ox0TenN3Zpg