@@ -55,11 +55,14 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
55
55
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
56
56
|-|-|-|-|-|-
57
57
| 0121 |[ Best Time to Buy and Sell Stock] ( src/main/rust/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.rs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Big_O_Time_O(N)_ Space_O(1) | 3 | 98.62
58
+ | 0283 |[ Move Zeroes] ( src/main/rust/g0201_0300/s0283_move_zeroes/Solution.rs ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
58
59
| 0001 |[ Two Sum] ( src/main/rust/g0001_0100/s0001_two_sum/Solution.rs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
59
60
| 0189 |[ Rotate Array] ( src/main/rust/g0101_0200/s0189_rotate_array/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 3 | 96.69
60
61
| 0055 |[ Jump Game] ( src/main/rust/g0001_0100/s0055_jump_game/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
61
62
| 0075 |[ Sort Colors] ( src/main/rust/g0001_0100/s0075_sort_colors/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
63
+ | 0238 |[ Product of Array Except Self] ( src/main/rust/g0201_0300/s0238_product_of_array_except_self/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Big_O_Time_O(n^2)_ Space_O(n) | 8 | 87.13
62
64
| 0041 |[ First Missing Positive] ( src/main/rust/g0001_0100/s0041_first_missing_positive/Solution.rs ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 3 | 97.44
65
+ | 0239 |[ Sliding Window Maximum] ( src/main/rust/g0201_0300/s0239_sliding_window_maximum/Solution.rs ) | Hard | Top_100_Liked_Questions, Array, Heap_Priority_Queue, Sliding_Window, Queue, Monotonic_Queue, Big_O_Time_O(n\* k)_ Space_O(n+k) | 43 | 84.62
63
66
64
67
#### Udemy Two Pointers
65
68
@@ -97,6 +100,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
97
100
| 0024 |[ Swap Nodes in Pairs] ( src/main/rust/g0001_0100/s0024_swap_nodes_in_pairs/Solution.rs ) | Medium | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
98
101
| 0206 |[ Reverse Linked List] ( src/main/rust/g0201_0300/s0206_reverse_linked_list/Solution.rs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(N)_ Space_O(1) | 0 | 100.00
99
102
| 0021 |[ Merge Two Sorted Lists] ( src/main/rust/g0001_0100/s0021_merge_two_sorted_lists/Solution.rs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 0 | 100.00
103
+ | 0234 |[ Palindrome Linked List] ( src/main/rust/g0201_0300/s0234_palindrome_linked_list/Solution.rs ) | Easy | Top_100_Liked_Questions, Two_Pointers, Stack, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 43 | 85.29
100
104
| 0025 |[ Reverse Nodes in k-Group] ( src/main/rust/g0001_0100/s0025_reverse_nodes_in_k_group/Solution.rs ) | Hard | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(k) | 0 | 100.00
101
105
| 0146 |[ LRU Cache] ( src/main/rust/g0101_0200/s0146_lru_cache/LRUCache.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Hash_Table, Design, Linked_List, Doubly_Linked_List, Big_O_Time_O(1)_ Space_O(capacity) | 90 | 75.18
102
106
@@ -106,9 +110,11 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
106
110
|-|-|-|-|-|-
107
111
| 0094 |[ Binary Tree Inorder Traversal] ( src/main/rust/g0001_0100/s0094_binary_tree_inorder_traversal/Solution.rs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
108
112
| 0102 |[ Binary Tree Level Order Traversal] ( src/main/rust/g0101_0200/s0102_binary_tree_level_order_traversal/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 1 | 80.61
113
+ | 0226 |[ Invert Binary Tree] ( src/main/rust/g0201_0300/s0226_invert_binary_tree/Solution.rs ) | 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
109
114
| 0104 |[ Maximum Depth of Binary Tree] ( src/main/rust/g0101_0200/s0104_maximum_depth_of_binary_tree/Solution.rs ) | 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) | 1 | 80.46
110
115
| 0124 |[ Binary Tree Maximum Path Sum] ( src/main/rust/g0101_0200/s0124_binary_tree_maximum_path_sum/Solution.rs ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Dynamic_Programming, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 0 | 100.00
111
116
| 0098 |[ Validate Binary Search Tree] ( src/main/rust/g0001_0100/s0098_validate_binary_search_tree/Solution.rs ) | Medium | String, Dynamic_Programming | 1 | 77.46
117
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/rust/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
112
118
113
119
#### Udemy Trie and Heap
114
120
@@ -227,6 +233,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
227
233
228
234
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
229
235
|-|-|-|-|-|-
236
+ | 0226 |[ Invert Binary Tree] ( src/main/rust/g0201_0300/s0226_invert_binary_tree/Solution.rs ) | 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
230
237
231
238
#### Day 13 Tree
232
239
@@ -266,11 +273,13 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
266
273
267
274
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
268
275
|-|-|-|-|-|-
276
+ | 0240 |[ Search a 2D Matrix II] ( src/main/rust/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Divide_and_Conquer, Big_O_Time_O(n+m)_ Space_O(1) | 0 | 100.00
269
277
270
278
#### Day 5 Array
271
279
272
280
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
273
281
|-|-|-|-|-|-
282
+ | 0238 |[ Product of Array Except Self] ( src/main/rust/g0201_0300/s0238_product_of_array_except_self/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Big_O_Time_O(n^2)_ Space_O(n) | 8 | 87.13
274
283
275
284
#### Day 6 String
276
285
@@ -338,11 +347,13 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
338
347
339
348
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
340
349
|-|-|-|-|-|-
350
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/rust/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
341
351
342
352
#### Day 18 Tree
343
353
344
354
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
345
355
|-|-|-|-|-|-
356
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/rust/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
346
357
347
358
#### Day 19 Graph
348
359
@@ -378,6 +389,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
378
389
379
390
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
380
391
|-|-|-|-|-|-
392
+ | 0283 |[ Move Zeroes] ( src/main/rust/g0201_0300/s0283_move_zeroes/Solution.rs ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
381
393
382
394
#### Day 4 Two Pointers
383
395
@@ -660,6 +672,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
660
672
661
673
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
662
674
|-|-|-|-|-|-
675
+ | 0287 |[ Find the Duplicate Number] ( src/main/rust/g0201_0300/s0287_find_the_duplicate_number/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Two_Pointers, Bit_Manipulation, Big_O_Time_O(n)_ Space_O(n) | 4 | 98.95
663
676
664
677
#### Day 6
665
678
@@ -675,6 +688,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
675
688
676
689
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
677
690
|-|-|-|-|-|-
691
+ | 0240 |[ Search a 2D Matrix II] ( src/main/rust/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Divide_and_Conquer, Big_O_Time_O(n+m)_ Space_O(1) | 0 | 100.00
678
692
679
693
#### Day 9
680
694
@@ -889,6 +903,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
889
903
890
904
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
891
905
|-|-|-|-|-|-
906
+ | 0283 |[ Move Zeroes] ( src/main/rust/g0201_0300/s0283_move_zeroes/Solution.rs ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 0 | 100.00
892
907
893
908
#### Day 7 Array
894
909
@@ -1255,6 +1270,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
1255
1270
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1256
1271
|-|-|-|-|-|-
1257
1272
| 0019 |[ Remove Nth Node From End of List] ( src/main/rust/g0001_0100/s0019_remove_nth_node_from_end_of_list/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Two_Pointers, Linked_List, Big_O_Time_O(L)_ Space_O(L) | 0 | 100.00
1273
+ | 0234 |[ Palindrome Linked List] ( src/main/rust/g0201_0300/s0234_palindrome_linked_list/Solution.rs ) | Easy | Top_100_Liked_Questions, Two_Pointers, Stack, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 43 | 85.29
1258
1274
1259
1275
#### Day 4 Linked List
1260
1276
@@ -1271,6 +1287,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
1271
1287
1272
1288
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1273
1289
|-|-|-|-|-|-
1290
+ | 0226 |[ Invert Binary Tree] ( src/main/rust/g0201_0300/s0226_invert_binary_tree/Solution.rs ) | 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
1274
1291
1275
1292
#### Day 7 Tree
1276
1293
@@ -1288,6 +1305,7 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
1288
1305
1289
1306
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1290
1307
|-|-|-|-|-|-
1308
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/rust/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1291
1309
1292
1310
#### Day 10 Graph/BFS/DFS
1293
1311
@@ -1358,6 +1376,16 @@ Rust-based LeetCode algorithm problem solutions, regularly updated.
1358
1376
1359
1377
| # | Title | Difficulty | Tag | Time, ms | Time, %
1360
1378
|------|----------------|-------------|-------------|----------|---------
1379
+ | 0295 |[ Find Median from Data Stream] ( src/main/rust/g0201_0300/s0295_find_median_from_data_stream/MedianFinder.rs ) | Hard | Top_100_Liked_Questions, Sorting, Two_Pointers, Design, Heap_Priority_Queue, Data_Stream, Big_O_Time_O(n\* log_n)_ Space_O(n) | 58 | 99.02
1380
+ | 0287 |[ Find the Duplicate Number] ( src/main/rust/g0201_0300/s0287_find_the_duplicate_number/Solution.rs ) | 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) | 4 | 98.95
1381
+ | 0283 |[ Move Zeroes] ( src/main/rust/g0201_0300/s0283_move_zeroes/Solution.rs ) | 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) | 0 | 100.00
1382
+ | 0240 |[ Search a 2D Matrix II] ( src/main/rust/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.rs ) | 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) | 0 | 100.00
1383
+ | 0239 |[ Sliding Window Maximum] ( src/main/rust/g0201_0300/s0239_sliding_window_maximum/Solution.rs ) | 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) | 43 | 84.62
1384
+ | 0238 |[ Product of Array Except Self] ( src/main/rust/g0201_0300/s0238_product_of_array_except_self/Solution.rs ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Data_Structure_II_Day_5_Array, Udemy_Arrays, Big_O_Time_O(n^2)_ Space_O(n) | 8 | 87.13
1385
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/rust/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Data_Structure_II_Day_18_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1386
+ | 0234 |[ Palindrome Linked List] ( src/main/rust/g0201_0300/s0234_palindrome_linked_list/Solution.rs ) | Easy | Top_100_Liked_Questions, Two_Pointers, Stack, Linked_List, Recursion, Level_2_Day_3_Linked_List, Udemy_Linked_List, Big_O_Time_O(n)_ Space_O(1) | 43 | 85.29
1387
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/rust/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.rs ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Data_Structure_II_Day_17_Tree, Level_2_Day_9_Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1388
+ | 0226 |[ Invert Binary Tree] ( src/main/rust/g0201_0300/s0226_invert_binary_tree/Solution.rs ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_12_Tree, Level_2_Day_6_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(n)_ Space_O(n) | 0 | 100.00
1361
1389
| 0221 |[ Maximal Square] ( src/main/rust/g0201_0300/s0221_maximal_square/Solution.rs ) | Medium | Array, Dynamic_Programming, Matrix, Dynamic_Programming_I_Day_16, Big_O_Time_O(m\* n)_ Space_O(m\* n) | 16 | 88.89
1362
1390
| 0215 |[ Kth Largest Element in an Array] ( src/main/rust/g0201_0300/s0215_kth_largest_element_in_an_array/Solution.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Heap_Priority_Queue, Divide_and_Conquer, Quickselect, Data_Structure_II_Day_20_Heap_Priority_Queue, Big_O_Time_O(n\* log(n))_ Space_O(log(n)) | 10 | 90.24
1363
1391
| 0208 |[ Implement Trie (Prefix Tree)] ( src/main/rust/g0201_0300/s0208_implement_trie_prefix_tree/Trie.rs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Design, Trie, Level_2_Day_16_Design, Udemy_Trie_and_Heap, Big_O_Time_O(word.length())_ or_O(prefix.length())_ Space_O(N) | 13 | 90.59
0 commit comments