@@ -178,6 +178,7 @@ I'll keep updating for full summary and better solutions. Stay tuned for updates
178
178
905 | [ Sort Array By Parity] ( https://leetcode.com/problems/sort-array-by-parity/ ) | [ C++] ( ./C++/sort-array-by-parity.cpp ) [ Python] ( ./Python/sort-array-by-parity.py ) | _ O(n)_ | _ O(1)_ | Easy ||
179
179
909 | [ Snakes and Ladders] ( https://leetcode.com/problems/snakes-and-ladders/ ) | [ C++] ( ./C++/snakes-and-ladders.cpp ) [ Python] ( ./Python/snakes-and-ladders.py ) | _ O(n^2)_ | _ O(n^2)_ | Medium ||
180
180
915 | [ Partition Array into Disjoint Intervals] ( https://leetcode.com/problems/partition-array-into-disjoint-intervals/ ) | [ C++] ( ./C++/partition-array-into-disjoint-intervals.cpp ) [ Python] ( ./Python/partition-array-into-disjoint-intervals.py ) | _ O(n)_ | _ O(n)_ | Medium ||
181
+ 918 | [ Maximum Sum Circular Subarray] ( https://leetcode.com/problems/maximum-sum-circular-subarray/ ) | [ C++] ( ./C++/maximum-sum-circular-subarray.cpp ) [ Python] ( ./Python/maximum-sum-circular-subarray.py ) | _ O(n)_ | _ O(1)_ | Medium ||
181
182
182
183
## String
183
184
| # | Title | Solution | Time | Space | Difficulty | Tag | Note|
@@ -255,6 +256,7 @@ I'll keep updating for full summary and better solutions. Stay tuned for updates
255
256
890 | [ Find and Replace Pattern] ( https://leetcode.com/problems/find-and-replace-pattern/ ) | [ C++] ( ./C++/find-and-replace-pattern.cpp ) [ Python] ( ./Python/find-and-replace-pattern.py ) | _ O(n * l)_ | _ O(1)_ | Medium ||
256
257
893 | [ Groups of Special-Equivalent Strings] ( https://leetcode.com/problems/groups-of-special-equivalent-strings/ ) | [ C++] ( ./C++/groups-of-special-equivalent-strings.cpp ) [ Python] ( ./Python/groups-of-special-equivalent-strings.py ) | _ O(n * l)_ | _ O(n)_ | Easy ||
257
258
916 | [ Word Subsets] ( https://leetcode.com/problems/word-subsets/ ) | [ C++] ( ./C++/word-subsets.cpp ) [ Python] ( ./Python/word-subsets.py ) | _ O(m + n)_ | _ O(1)_ | Medium ||
259
+ 917 | [ Reverse Only Letters] ( https://leetcode.com/problems/reverse-only-letters/ ) | [ C++] ( ./C++/reverse-only-letters.cpp ) [ Python] ( ./Python/reverse-only-letters.py ) | _ O(n)_ | _ O(1)_ | Easy ||
258
260
259
261
## Linked List
260
262
| # | Title | Solution | Time | Space | Difficulty | Tag | Note|
@@ -385,6 +387,7 @@ I'll keep updating for full summary and better solutions. Stay tuned for updates
385
387
866 | [ Smallest Subtree with all the Deepest Nodes] ( https://leetcode.com/problems/smallest-subtree-with-all-the-deepest-nodes/ ) | [ C++] ( ./C++/smallest-subtree-with-all-the-deepest-nodes.cpp ) [ Python] ( ./Python/smallest-subtree-with-all-the-deepest-nodes.py ) | _ O(n)_ | _ O(h)_ | Medium || DFS |
386
388
889 | [ Construct Binary Tree from Preorder and Postorder Traversal] ( https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/ ) | [ C++] ( ./C++/construct-binary-tree-from-preorder-and-postorder-traversal.cpp ) [ Python] ( ./Python/construct-binary-tree-from-preorder-and-postorder-traversal.py ) | _ O(n)_ | _ O(h)_ | Medium || DFS, stack |
387
389
897| [ Increasing Order Search Tree] ( https://leetcode.com/problems/increasing-order-search-tree/ ) | [ C++] ( ./C++/increasing-order-search-tree.cpp ) [ Python] ( ./Python/increasing-order-search-tree.py ) | _ O(n)_ | _ O(h)_ | Easy || DFS |
390
+ 919| [ Complete Binary Tree Inserter] ( https://leetcode.com/problems/complete-binary-tree-inserter/ ) | [ C++] ( ./C++/complete-binary-tree-inserter.cpp ) [ Python] ( ./Python/complete-binary-tree-inserter.py ) | ctor: _ O(n)_ <br > insert: _ O(1)_ <br > get_root: _ O(1)_ | _ O(n)_ | Medium |||
388
391
389
392
## Hash Table
390
393
| # | Title | Solution | Time | Space | Difficulty | Tag | Note|
@@ -876,6 +879,7 @@ I'll keep updating for full summary and better solutions. Stay tuned for updates
876
879
877 | [ Stone Game] ( https://leetcode.com/problems/stone-game/ ) | [ C++] ( ./C++/stone-game.cpp ) [ Python] ( ./Python/stone-game.py ) | _ O(n^2)_ | _ O(n)_ | Medium | variant of [ Predict the Winner] ( https://leetcode.com/problems/predict-the-winner/ ) | |
877
880
879 | [ Profitable Schemes] ( https://leetcode.com/problems/profitable-schemes/ ) | [ C++] ( ./C++/profitable-schemes.cpp ) [ Python] ( ./Python/profitable-schemes.py ) | _ O(n * p * g)_ | _ O(p * g)_ | Hard || |
878
881
903 | [ Valid Permutations for DI Sequence] ( https://leetcode.com/problems/valid-permutations-for-di-sequence/ ) | [ C++] ( ./C++/valid-permutations-for-di-sequence.cpp ) [ Python] ( ./Python/valid-permutations-for-di-sequence.py ) | _ O(n^2)_ | _ O(n)_ | Hard || |
882
+ 920 | [ Number of Music Playlists] ( https://leetcode.com/problems/number-of-music-playlists/ ) | [ C++] ( ./C++/number-of-music-playlists.cpp ) [ Python] ( ./Python/number-of-music-playlists.py ) | _ O(n * l)_ | _ O(l)_ | Hard || |
879
883
880
884
## Greedy
881
885
| # | Title | Solution | Time | Space | Difficulty | Tag | Note|
0 commit comments