@@ -518,6 +518,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
518
518
519
519
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
520
520
|-|-|-|-|-|-
521
+ | 0380 |[ Insert Delete GetRandom O(1)] ( src/main/ts/g0301_0400/s0380_insert_delete_getrandom_o1/solution.ts ) | Medium | Array, Hash_Table, Math, Design, Randomized | 73 | 82.52
521
522
522
523
### Graph Theory I
523
524
@@ -834,6 +835,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
834
835
835
836
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
836
837
|-|-|-|-|-|-
838
+ | 0100 |[ Same Tree] ( src/main/ts/g0001_0100/s0100_same_tree/solution.ts ) | Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 0 | 100.00
837
839
| 0101 |[ Symmetric Tree] ( src/main/ts/g0101_0200/s0101_symmetric_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 0 | 100.00
838
840
| 0199 |[ Binary Tree Right Side View] ( src/main/ts/g0101_0200/s0199_binary_tree_right_side_view/solution.ts ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 0 | 100.00
839
841
@@ -976,6 +978,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
976
978
| 0103 |[ Binary Tree Zigzag Level Order Traversal] ( src/main/ts/g0101_0200/s0103_binary_tree_zigzag_level_order_traversal/solution.ts ) | Medium | Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree | 0 | 100.00
977
979
| 0108 |[ Convert Sorted Array to Binary Search Tree] ( src/main/ts/g0101_0200/s0108_convert_sorted_array_to_binary_search_tree/solution.ts ) | Easy | Top_Interview_Questions, Array, Tree, Binary_Tree, Binary_Search_Tree, Divide_and_Conquer | 0 | 100.00
978
980
| 0543 |[ Diameter of Binary Tree] ( src/main/ts/g0501_0600/s0543_diameter_of_binary_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 1 | 87.16
981
+ | 0100 |[ Same Tree] ( src/main/ts/g0001_0100/s0100_same_tree/solution.ts ) | Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 0 | 100.00
979
982
| 0226 |[ Invert Binary Tree] ( src/main/ts/g0201_0300/s0226_invert_binary_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
980
983
| 0104 |[ Maximum Depth of Binary Tree] ( src/main/ts/g0101_0200/s0104_maximum_depth_of_binary_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(H) | 0 | 100.00
981
984
| 0124 |[ Binary Tree Maximum Path Sum] ( src/main/ts/g0101_0200/s0124_binary_tree_maximum_path_sum/solution.ts ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Dynamic_Programming, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 2 | 71.11
@@ -1049,6 +1052,8 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1049
1052
| 0122 |[ Best Time to Buy and Sell Stock II] ( src/main/ts/g0101_0200/s0122_best_time_to_buy_and_sell_stock_ii/solution.ts ) | Medium | Top_Interview_Questions, Array, Dynamic_Programming, Greedy | 0 | 100.00
1050
1053
| 0055 |[ Jump Game] ( src/main/ts/g0001_0100/s0055_jump_game/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
1051
1054
| 0045 |[ Jump Game II] ( src/main/ts/g0001_0100/s0045_jump_game_ii/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 1 | 84.27
1055
+ | 0274 |[ H-Index] ( src/main/ts/g0201_0300/s0274_h_index/solution.ts ) | Medium | Array, Sorting, Counting_Sort | 0 | 100.00
1056
+ | 0380 |[ Insert Delete GetRandom O(1)] ( src/main/ts/g0301_0400/s0380_insert_delete_getrandom_o1/solution.ts ) | Medium | Array, Hash_Table, Math, Design, Randomized | 73 | 82.52
1052
1057
| 0238 |[ Product of Array Except Self] ( src/main/ts/g0201_0300/s0238_product_of_array_except_self/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Big_O_Time_O(n^2)_ Space_O(n) | 3 | 92.81
1053
1058
| 0134 |[ Gas Station] ( src/main/ts/g0101_0200/s0134_gas_station/solution.ts ) | Medium | Top_Interview_Questions, Array, Greedy | 0 | 100.00
1054
1059
| 0135 |[ Candy] ( src/main/ts/g0101_0200/s0135_candy/solution.ts ) | Hard | Array, Greedy | 2 | 96.15
@@ -1145,6 +1150,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1145
1150
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1146
1151
|-|-|-|-|-|-
1147
1152
| 0104 |[ Maximum Depth of Binary Tree] ( src/main/ts/g0101_0200/s0104_maximum_depth_of_binary_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(H) | 0 | 100.00
1153
+ | 0100 |[ Same Tree] ( src/main/ts/g0001_0100/s0100_same_tree/solution.ts ) | Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 0 | 100.00
1148
1154
| 0226 |[ Invert Binary Tree] ( src/main/ts/g0201_0300/s0226_invert_binary_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1149
1155
| 0101 |[ Symmetric Tree] ( src/main/ts/g0101_0200/s0101_symmetric_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 0 | 100.00
1150
1156
| 0105 |[ Construct Binary Tree from Preorder and Inorder Traversal] ( src/main/ts/g0101_0200/s0105_construct_binary_tree_from_preorder_and_inorder_traversal/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Tree, Binary_Tree, Divide_and_Conquer, Big_O_Time_O(N)_ Space_O(N) | 2 | 93.38
@@ -1180,6 +1186,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1180
1186
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1181
1187
|-|-|-|-|-|-
1182
1188
| 0200 |[ Number of Islands] ( src/main/ts/g0101_0200/s0200_number_of_islands/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Depth_First_Search, Breadth_First_Search, Matrix, Union_Find, Big_O_Time_O(M\* N)_ Space_O(M\* N) | 57 | 93.94
1189
+ | 0399 |[ Evaluate Division] ( src/main/ts/g0301_0400/s0399_evaluate_division/solution.ts ) | Medium | Array, Depth_First_Search, Breadth_First_Search, Graph, Union_Find, Shortest_Path | 0 | 100.00
1183
1190
| 0207 |[ Course Schedule] ( src/main/ts/g0201_0300/s0207_course_schedule/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Graph, Topological_Sort, Big_O_Time_O(N)_ Space_O(N) | 11 | 81.08
1184
1191
| 0210 |[ Course Schedule II] ( src/main/ts/g0201_0300/s0210_course_schedule_ii/solution.ts ) | Medium | Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Graph, Topological_Sort | 2 | 99.76
1185
1192
@@ -1217,7 +1224,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1217
1224
|-|-|-|-|-|-
1218
1225
| 0108 |[ Convert Sorted Array to Binary Search Tree] ( src/main/ts/g0101_0200/s0108_convert_sorted_array_to_binary_search_tree/solution.ts ) | Easy | Top_Interview_Questions, Array, Tree, Binary_Tree, Binary_Search_Tree, Divide_and_Conquer | 0 | 100.00
1219
1226
| 0148 |[ Sort List] ( src/main/ts/g0101_0200/s0148_sort_list/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Sorting, Two_Pointers, Linked_List, Divide_and_Conquer, Merge_Sort, Big_O_Time_O(log(N))_ Space_O(log(N)) | 36 | 44.94
1220
- | 0427 |[ Construct Quad Tree] ( src/main/ts/g0401_0500/s0427_construct_quad_tree/solution.ts ) | Medium | Array, Tree, Matrix, Divide_and_Conquer | ew 150 | ew 150 Divide and Conquer
1227
+ | 0427 |[ Construct Quad Tree] ( src/main/ts/g0401_0500/s0427_construct_quad_tree/solution.ts ) | Medium | Array, Tree, Matrix, Divide_and_Conquer | 51 | 96.23
1221
1228
| 0023 |[ Merge k Sorted Lists] ( src/main/ts/g0001_0100/s0023_merge_k_sorted_lists/solution.ts ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Heap_Priority_Queue, Linked_List, Divide_and_Conquer, Merge_Sort, Big_O_Time_O(k\* n\* log(k))_ Space_O(log(k)) | 4 | 97.65
1222
1229
1223
1230
#### Top Interview 150 Kadane's Algorithm
@@ -1765,11 +1772,13 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1765
1772
| 0438 |[ Find All Anagrams in a String] ( src/main/ts/g0401_0500/s0438_find_all_anagrams_in_a_string/solution.ts ) | Medium | Top_100_Liked_Questions, String, Hash_Table, Sliding_Window, Algorithm_II_Day_5_Sliding_Window, Programming_Skills_II_Day_12, Level_1_Day_12_Sliding_Window/Two_Pointer, Big_O_Time_O(n+m)_ Space_O(1) | 8 | 97.80
1766
1773
| 0437 |[ Path Sum III] ( src/main/ts/g0401_0500/s0437_path_sum_iii/solution.ts ) | Medium | Depth_First_Search, Tree, Binary_Tree, Level_2_Day_7_Tree, Big_O_Time_O(n)_ Space_O(n) | 3 | 86.41
1767
1774
| 0433 |[ Minimum Genetic Mutation] ( src/main/ts/g0401_0500/s0433_minimum_genetic_mutation/solution.ts ) | Medium | String, Hash_Table, Breadth_First_Search, Graph_Theory_I_Day_12_Breadth_First_Search, Top_Interview_150_Graph_BFS | 0 | 100.00
1768
- | 0427 |[ Construct Quad Tree] ( src/main/ts/g0401_0500/s0427_construct_quad_tree/solution.ts ) | Medium | Array, Tree, Matrix, Divide_and_Conquer | ew 150 | ew 150 Divide and Conquer
1775
+ | 0427 |[ Construct Quad Tree] ( src/main/ts/g0401_0500/s0427_construct_quad_tree/solution.ts ) | Medium | Array, Tree, Matrix, Divide_and_Conquer, Top_Interview_150_Divide_and_Conquer | 51 | 96.23
1769
1776
| 0416 |[ Partition Equal Subset Sum] ( src/main/ts/g0401_0500/s0416_partition_equal_subset_sum/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Level_2_Day_13_Dynamic_Programming, Big_O_Time_O(n\* sums)_ Space_O(n\* sums) | 33 | 93.24
1777
+ | 0399 |[ Evaluate Division] ( src/main/ts/g0301_0400/s0399_evaluate_division/solution.ts ) | Medium | Array, Depth_First_Search, Breadth_First_Search, Graph, Union_Find, Shortest_Path, Top_Interview_150_Graph_General | 0 | 100.00
1770
1778
| 0394 |[ Decode String] ( src/main/ts/g0301_0400/s0394_decode_string/solution.ts ) | Medium | Top_100_Liked_Questions, String, Stack, Recursion, Level_1_Day_14_Stack, Udemy_Strings, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1771
1779
| 0392 |[ Is Subsequence] ( src/main/ts/g0301_0400/s0392_is_subsequence/solution.ts ) | Easy | String, Dynamic_Programming, Two_Pointers, Dynamic_Programming_I_Day_19, Level_1_Day_2_String, Udemy_Two_Pointers, Top_Interview_150_Two_Pointers | 0 | 100.00
1772
1780
| 0383 |[ Ransom Note] ( src/main/ts/g0301_0400/s0383_ransom_note/solution.ts ) | Easy | String, Hash_Table, Counting, Data_Structure_I_Day_6_String, Top_Interview_150_Hashmap | 4 | 97.40
1781
+ | 0380 |[ Insert Delete GetRandom O(1)] ( src/main/ts/g0301_0400/s0380_insert_delete_getrandom_o1/solution.ts ) | Medium | Array, Hash_Table, Math, Design, Randomized, Programming_Skills_II_Day_20, Top_Interview_150_Array/String | 73 | 82.52
1773
1782
| 0373 |[ Find K Pairs with Smallest Sums] ( src/main/ts/g0301_0400/s0373_find_k_pairs_with_smallest_sums/solution.ts ) | Medium | Array, Heap_Priority_Queue, Top_Interview_150_Heap | 42 | 85.15
1774
1783
| 0347 |[ Top K Frequent Elements] ( src/main/ts/g0301_0400/s0347_top_k_frequent_elements/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Hash_Table, Sorting, Heap_Priority_Queue, Counting, Divide_and_Conquer, Quickselect, Bucket_Sort, Data_Structure_II_Day_20_Heap_Priority_Queue, Big_O_Time_O(n\* log(n))_ Space_O(k) | 7 | 87.13
1775
1784
| 0338 |[ Counting Bits] ( src/main/ts/g0301_0400/s0338_counting_bits/solution.ts ) | Easy | Dynamic_Programming, Bit_Manipulation, Udemy_Bit_Manipulation, Big_O_Time_O(num)_ Space_O(num) | 1 | 89.22
@@ -1780,6 +1789,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1780
1789
| 0289 |[ Game of Life] ( src/main/ts/g0201_0300/s0289_game_of_life/solution.ts ) | Medium | Array, Matrix, Simulation, Top_Interview_150_Matrix | 0 | 100.00
1781
1790
| 0287 |[ Find the Duplicate Number] ( src/main/ts/g0201_0300/s0287_find_the_duplicate_number/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Two_Pointers, Bit_Manipulation, Binary_Search_II_Day_5, Big_O_Time_O(n)_ Space_O(n) | 5 | 88.65
1782
1791
| 0283 |[ Move Zeroes] ( src/main/ts/g0201_0300/s0283_move_zeroes/solution.ts ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Algorithm_I_Day_3_Two_Pointers, Programming_Skills_I_Day_6_Array, Udemy_Arrays, Big_O_Time_O(n)_ Space_O(1) | 1 | 82.86
1792
+ | 0274 |[ H-Index] ( src/main/ts/g0201_0300/s0274_h_index/solution.ts ) | Medium | Array, Sorting, Counting_Sort, Top_Interview_150_Array/String | 0 | 100.00
1783
1793
| 0242 |[ Valid Anagram] ( src/main/ts/g0201_0300/s0242_valid_anagram/solution.ts ) | Easy | String, Hash_Table, Sorting, Data_Structure_I_Day_6_String, Programming_Skills_I_Day_11_Containers_and_Libraries, Udemy_Strings, Top_Interview_150_Hashmap | 4 | 97.99
1784
1794
| 0240 |[ Search a 2D Matrix II] ( src/main/ts/g0201_0300/s0240_search_a_2d_matrix_ii/solution.ts ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Divide_and_Conquer, Data_Structure_II_Day_4_Array, Binary_Search_II_Day_8, Big_O_Time_O(n+m)_ Space_O(1) | 42 | 94.61
1785
1795
| 0239 |[ Sliding Window Maximum] ( src/main/ts/g0201_0300/s0239_sliding_window_maximum/solution.ts ) | Hard | Top_100_Liked_Questions, Array, Heap_Priority_Queue, Sliding_Window, Queue, Monotonic_Queue, Udemy_Arrays, Big_O_Time_O(n\* k)_ Space_O(n+k) | 26 | 99.07
@@ -1853,6 +1863,7 @@ TypeScript-based LeetCode algorithm problem solutions, regularly updated.
1853
1863
| 0103 |[ Binary Tree Zigzag Level Order Traversal] ( src/main/ts/g0101_0200/s0103_binary_tree_zigzag_level_order_traversal/solution.ts ) | Medium | Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_II_Day_15_Tree, Udemy_Tree_Stack_Queue, Top_Interview_150_Binary_Tree_BFS | 0 | 100.00
1854
1864
| 0102 |[ Binary Tree Level Order Traversal] ( src/main/ts/g0101_0200/s0102_binary_tree_level_order_traversal/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_11_Tree, Level_1_Day_6_Tree, Udemy_Tree_Stack_Queue, Top_Interview_150_Binary_Tree_BFS, Big_O_Time_O(N)_ Space_O(N) | 0 | 100.00
1855
1865
| 0101 |[ Symmetric Tree] ( src/main/ts/g0101_0200/s0101_symmetric_tree/solution.ts ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_11_Tree, Level_2_Day_15_Tree, Top_Interview_150_Binary_Tree_General, Big_O_Time_O(N)_ Space_O(log(N)) | 0 | 100.00
1866
+ | 0100 |[ Same Tree] ( src/main/ts/g0001_0100/s0100_same_tree/solution.ts ) | Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Level_2_Day_15_Tree, Udemy_Tree_Stack_Queue, Top_Interview_150_Binary_Tree_General | 0 | 100.00
1856
1867
| 0098 |[ Validate Binary Search Tree] ( src/main/ts/g0001_0100/s0098_validate_binary_search_tree/solution.ts ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Data_Structure_I_Day_14_Tree, Level_1_Day_8_Binary_Search_Tree, Udemy_Tree_Stack_Queue, Top_Interview_150_Binary_Search_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 0 | 100.00
1857
1868
| 0097 |[ Interleaving String] ( src/main/ts/g0001_0100/s0097_interleaving_string/solution.ts ) | Medium | String, Dynamic_Programming, Top_Interview_150_Multidimensional_DP | 43 | 97.65
1858
1869
| 0096 |[ Unique Binary Search Trees] ( src/main/ts/g0001_0100/s0096_unique_binary_search_trees/solution.ts ) | Medium | Dynamic_Programming, Math, Tree, Binary_Tree, Binary_Search_Tree, Dynamic_Programming_I_Day_11, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
0 commit comments