@@ -246,6 +246,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
246
246
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
247
247
|-|-|-|-|-|-
248
248
| 0019 |[ Remove Nth Node From End of List] ( src/main/cpp/g0001_0100/s0019_remove_nth_node_from_end_of_list/Solution.cpp ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Two_Pointers, Linked_List, Big_O_Time_O(L)_ Space_O(L) | 0 | 100.00
249
+ | 0234 |[ Palindrome Linked List] ( src/main/cpp/g0201_0300/s0234_palindrome_linked_list/Solution.cpp ) | Easy | Top_100_Liked_Questions, Two_Pointers, Stack, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 154 | 83.63
249
250
250
251
####Day 4 Linked List
251
252
@@ -261,6 +262,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
261
262
262
263
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
263
264
|-|-|-|-|-|-
265
+ | 0226 |[ Invert Binary Tree] ( src/main/cpp/g0201_0300/s0226_invert_binary_tree/Solution.cpp ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 2 | 45.75
264
266
265
267
####Day 7 Tree
266
268
@@ -278,6 +280,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
278
280
279
281
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
280
282
|-|-|-|-|-|-
283
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/cpp/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.cpp ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(n) | 7 | 94.52
281
284
282
285
####Day 10 Graph/BFS/DFS
283
286
@@ -364,7 +367,10 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
364
367
365
368
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
366
369
|-|-|-|-|-|-
370
+ | 0283 |[ Move Zeroes] ( src/main/cpp/g0201_0300/s0283_move_zeroes/Solution.cpp ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 6 | 98.89
367
371
| 0001 |[ Two Sum] ( src/main/cpp/g0001_0100/s0001_two_sum/Solution.cpp ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 4 | 94.42
372
+ | 0238 |[ Product of Array Except Self] ( src/main/cpp/g0201_0300/s0238_product_of_array_except_self/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Big_O_Time_O(n^2)_ Space_O(n) | 21 | 88.52
373
+ | 0239 |[ Sliding Window Maximum] ( src/main/cpp/g0201_0300/s0239_sliding_window_maximum/Solution.cpp ) | Hard | Top_100_Liked_Questions, Array, Heap_Priority_Queue, Sliding_Window, Queue, Monotonic_Queue, Big_O_Time_O(n\* k)_ Space_O(n+k) | 164 | 80.55
368
374
369
375
####Udemy Two Pointers
370
376
@@ -392,12 +398,15 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
392
398
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
393
399
|-|-|-|-|-|-
394
400
| 0021 |[ Merge Two Sorted Lists] ( src/main/cpp/g0001_0100/s0021_merge_two_sorted_lists/Solution.cpp ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 0 | 100.00
401
+ | 0234 |[ Palindrome Linked List] ( src/main/cpp/g0201_0300/s0234_palindrome_linked_list/Solution.cpp ) | Easy | Top_100_Liked_Questions, Two_Pointers, Stack, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 154 | 83.63
395
402
396
403
####Udemy Tree Stack Queue
397
404
398
405
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
399
406
|-|-|-|-|-|-
400
407
| 0543 |[ Diameter of Binary Tree] ( src/main/cpp/g0501_0600/s0543_diameter_of_binary_tree/Solution.cpp ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 4 | 95.38
408
+ | 0226 |[ Invert Binary Tree] ( src/main/cpp/g0201_0300/s0226_invert_binary_tree/Solution.cpp ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 2 | 45.75
409
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/cpp/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.cpp ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 13 | 55.40
401
410
402
411
####Udemy Trie and Heap
403
412
@@ -499,6 +508,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
499
508
500
509
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
501
510
|-|-|-|-|-|-
511
+ | 0226 |[ Invert Binary Tree] ( src/main/cpp/g0201_0300/s0226_invert_binary_tree/Solution.cpp ) | Easy | Top_100_Liked_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 2 | 45.75
502
512
503
513
####Day 13 Tree
504
514
@@ -532,11 +542,13 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
532
542
533
543
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
534
544
|-|-|-|-|-|-
545
+ | 0240 |[ Search a 2D Matrix II] ( src/main/cpp/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Divide_and_Conquer, Big_O_Time_O(n+m)_ Space_O(1) | 40 | 84.33
535
546
536
547
####Day 5 Array
537
548
538
549
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
539
550
|-|-|-|-|-|-
551
+ | 0238 |[ Product of Array Except Self] ( src/main/cpp/g0201_0300/s0238_product_of_array_except_self/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Prefix_Sum, Big_O_Time_O(n^2)_ Space_O(n) | 21 | 88.52
540
552
| 0560 |[ Subarray Sum Equals K] ( src/main/cpp/g0501_0600/s0560_subarray_sum_equals_k/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Hash_Table, Prefix_Sum, Big_O_Time_O(n)_ Space_O(n) | 54 | 92.60
541
553
542
554
####Day 6 String
@@ -601,11 +613,13 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
601
613
602
614
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
603
615
|-|-|-|-|-|-
616
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/cpp/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.cpp ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(n) | 7 | 94.52
604
617
605
618
####Day 18 Tree
606
619
607
620
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
608
621
|-|-|-|-|-|-
622
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/cpp/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.cpp ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(n)_ Space_O(n) | 13 | 55.40
609
623
610
624
####Day 19 Graph
611
625
@@ -639,6 +653,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
639
653
640
654
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
641
655
|-|-|-|-|-|-
656
+ | 0283 |[ Move Zeroes] ( src/main/cpp/g0201_0300/s0283_move_zeroes/Solution.cpp ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 6 | 98.89
642
657
643
658
####Day 4 Two Pointers
644
659
@@ -903,6 +918,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
903
918
904
919
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
905
920
|-|-|-|-|-|-
921
+ | 0287 |[ Find the Duplicate Number] ( src/main/cpp/g0201_0300/s0287_find_the_duplicate_number/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Two_Pointers, Bit_Manipulation, Big_O_Time_O(n)_ Space_O(n) | 74 | 75.71
906
922
907
923
####Day 6
908
924
@@ -918,6 +934,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
918
934
919
935
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
920
936
|-|-|-|-|-|-
937
+ | 0240 |[ Search a 2D Matrix II] ( src/main/cpp/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Divide_and_Conquer, Big_O_Time_O(n+m)_ Space_O(1) | 40 | 84.33
921
938
922
939
####Day 9
923
940
@@ -1121,6 +1138,7 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
1121
1138
1122
1139
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1123
1140
|-|-|-|-|-|-
1141
+ | 0283 |[ Move Zeroes] ( src/main/cpp/g0201_0300/s0283_move_zeroes/Solution.cpp ) | Easy | Top_100_Liked_Questions, Array, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 6 | 98.89
1124
1142
1125
1143
####Day 7 Array
1126
1144
@@ -1276,6 +1294,16 @@ Cpp-based LeetCode algorithm problem solutions, regularly updated.
1276
1294
| 0338 |[ Counting Bits] ( src/main/cpp/g0301_0400/s0338_counting_bits/Solution.cpp ) | Easy | Dynamic_Programming, Bit_Manipulation, Udemy_Bit_Manipulation, Big_O_Time_O(num)_ Space_O(num) | 0 | 100.00
1277
1295
| 0322 |[ Coin Change] ( src/main/cpp/g0301_0400/s0322_coin_change/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Breadth_First_Search, Algorithm_II_Day_18_Dynamic_Programming, Dynamic_Programming_I_Day_20, Level_2_Day_12_Dynamic_Programming, Big_O_Time_O(m\* n)_ Space_O(amount) | 12 | 97.65
1278
1296
| 0300 |[ Longest Increasing Subsequence] ( src/main/cpp/g0201_0300/s0300_longest_increasing_subsequence/Solution.cpp ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Binary_Search, Algorithm_II_Day_16_Dynamic_Programming, Binary_Search_II_Day_3, Dynamic_Programming_I_Day_18, Udemy_Dynamic_Programming, Big_O_Time_O(n\* log_n)_ Space_O(n) | 4 | 94.11
1297
+ | 0295 |[ Find Median from Data Stream] ( src/main/cpp/g0201_0300/s0295_find_median_from_data_stream/MedianFinder.cpp ) | Hard | Top_100_Liked_Questions, Sorting, Two_Pointers, Design, Heap_Priority_Queue, Data_Stream, Big_O_Time_O(n\* log_n)_ Space_O(n) | 231 | 98.67
1298
+ | 0287 |[ Find the Duplicate Number] ( src/main/cpp/g0201_0300/s0287_find_the_duplicate_number/Solution.cpp ) | 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) | 74 | 75.71
1299
+ | 0283 |[ Move Zeroes] ( src/main/cpp/g0201_0300/s0283_move_zeroes/Solution.cpp ) | 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) | 6 | 98.89
1300
+ | 0240 |[ Search a 2D Matrix II] ( src/main/cpp/g0201_0300/s0240_search_a_2d_matrix_ii/Solution.cpp ) | 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) | 40 | 84.33
1301
+ | 0239 |[ Sliding Window Maximum] ( src/main/cpp/g0201_0300/s0239_sliding_window_maximum/Solution.cpp ) | 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) | 164 | 80.55
1302
+ | 0238 |[ Product of Array Except Self] ( src/main/cpp/g0201_0300/s0238_product_of_array_except_self/Solution.cpp ) | 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) | 21 | 88.52
1303
+ | 0236 |[ Lowest Common Ancestor of a Binary Tree] ( src/main/cpp/g0201_0300/s0236_lowest_common_ancestor_of_a_binary_tree/Solution.cpp ) | 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) | 13 | 55.40
1304
+ | 0234 |[ Palindrome Linked List] ( src/main/cpp/g0201_0300/s0234_palindrome_linked_list/Solution.cpp ) | 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) | 154 | 83.63
1305
+ | 0230 |[ Kth Smallest Element in a BST] ( src/main/cpp/g0201_0300/s0230_kth_smallest_element_in_a_bst/Solution.cpp ) | 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) | 7 | 94.52
1306
+ | 0226 |[ Invert Binary Tree] ( src/main/cpp/g0201_0300/s0226_invert_binary_tree/Solution.cpp ) | 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) | 2 | 45.75
1279
1307
| 0023 |[ Merge k Sorted Lists] ( src/main/cpp/g0001_0100/s0023_merge_k_sorted_lists/Solution.cpp ) | 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)) | 7 | 98.72
1280
1308
| 0022 |[ Generate Parentheses] ( src/main/cpp/g0001_0100/s0022_generate_parentheses/Solution.cpp ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Backtracking, Algorithm_II_Day_11_Recursion_Backtracking, Udemy_Backtracking/Recursion, Big_O_Time_O(2^n)_ Space_O(n) | 0 | 100.00
1281
1309
| 0021 |[ Merge Two Sorted Lists] ( src/main/cpp/g0001_0100/s0021_merge_two_sorted_lists/Solution.cpp ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Data_Structure_I_Day_7_Linked_List, Algorithm_I_Day_10_Recursion_Backtracking, Level_1_Day_3_Linked_List, Udemy_Linked_List, Big_O_Time_O(m+n)_ Space_O(m+n) | 0 | 100.00