@@ -42,11 +42,13 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
42
42
43
43
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
44
44
|-|-|-|-|-|-
45
+ | 0015 |[ 3Sum] ( src/main/ruby/g0001_0100/s0015_3sum/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Big_O_Time_O(n\* log(n))_ Space_O(n^2) | 659 | 83.74
45
46
46
47
####Day 4 Two Pointers
47
48
48
49
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
49
50
|-|-|-|-|-|-
51
+ | 0011 |[ Container With Most Water] ( src/main/ruby/g0001_0100/s0011_container_with_most_water/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Greedy, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 114 | 95.98
50
52
51
53
####Day 5 Sliding Window
52
54
@@ -82,6 +84,8 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
82
84
83
85
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
84
86
|-|-|-|-|-|-
87
+ | 0017 |[ Letter Combinations of a Phone Number] ( src/main/ruby/g0001_0100/s0017_letter_combinations_of_a_phone_number/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Backtracking, Big_O_Time_O(4^n)_ Space_O(n) | 49 | 93.94
88
+ | 0022 |[ Generate Parentheses] ( src/main/ruby/g0001_0100/s0022_generate_parentheses/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Backtracking, Big_O_Time_O(2^n)_ Space_O(n) | 43 | 100.00
85
89
86
90
####Day 12 Dynamic Programming
87
91
@@ -711,6 +715,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
711
715
712
716
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
713
717
|-|-|-|-|-|-
718
+ | 0021 |[ Merge Two Sorted Lists] ( src/main/ruby/g0001_0100/s0021_merge_two_sorted_lists/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 66 | 59.01
714
719
715
720
####Day 4 Linked List
716
721
@@ -789,6 +794,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
789
794
790
795
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
791
796
|-|-|-|-|-|-
797
+ | 0019 |[ Remove Nth Node From End of List] ( src/main/ruby/g0001_0100/s0019_remove_nth_node_from_end_of_list/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Two_Pointers, Linked_List, Big_O_Time_O(L)_ Space_O(L) | 51 | 95.27
792
798
793
799
####Day 4 Linked List
794
800
@@ -890,6 +896,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
890
896
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
891
897
|-|-|-|-|-|-
892
898
| 0003 |[ Longest Substring Without Repeating Characters] ( src/main/ruby/g0001_0100/s0003_longest_substring_without_repeating_characters/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Sliding_Window, Big_O_Time_O(n)_ Space_O(1) | 94 | 85.62
899
+ | 0020 |[ Valid Parentheses] ( src/main/ruby/g0001_0100/s0020_valid_parentheses/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, String, Stack, Big_O_Time_O(n)_ Space_O(n) | 53 | 90.52
893
900
| 0005 |[ Longest Palindromic Substring] ( src/main/ruby/g0001_0100/s0005_longest_palindromic_substring/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Big_O_Time_O(n)_ Space_O(n) | 117 | 98.63
894
901
895
902
####Udemy Binary Search
@@ -907,6 +914,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
907
914
908
915
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
909
916
|-|-|-|-|-|-
917
+ | 0015 |[ 3Sum] ( src/main/ruby/g0001_0100/s0015_3sum/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Big_O_Time_O(n\* log(n))_ Space_O(n^2) | 659 | 83.74
910
918
911
919
####Udemy Famous Algorithm
912
920
@@ -927,6 +935,9 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
927
935
928
936
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
929
937
|-|-|-|-|-|-
938
+ | 0024 |[ Swap Nodes in Pairs] ( src/main/ruby/g0001_0100/s0024_swap_nodes_in_pairs/solution.rb ) | Medium | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 59 | 76.00
939
+ | 0021 |[ Merge Two Sorted Lists] ( src/main/ruby/g0001_0100/s0021_merge_two_sorted_lists/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 66 | 59.01
940
+ | 0025 |[ Reverse Nodes in k-Group] ( src/main/ruby/g0001_0100/s0025_reverse_nodes_in_k_group/solution.rb ) | Hard | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(k) | 62 | 91.67
930
941
931
942
####Udemy Tree Stack Queue
932
943
@@ -953,6 +964,8 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
953
964
954
965
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
955
966
|-|-|-|-|-|-
967
+ | 0022 |[ Generate Parentheses] ( src/main/ruby/g0001_0100/s0022_generate_parentheses/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Backtracking, Big_O_Time_O(2^n)_ Space_O(n) | 43 | 100.00
968
+ | 0017 |[ Letter Combinations of a Phone Number] ( src/main/ruby/g0001_0100/s0017_letter_combinations_of_a_phone_number/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Backtracking, Big_O_Time_O(4^n)_ Space_O(n) | 49 | 93.94
956
969
957
970
####Udemy Bit Manipulation
958
971
@@ -1001,6 +1014,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1001
1014
1002
1015
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1003
1016
|-|-|-|-|-|-
1017
+ | 0021 |[ Merge Two Sorted Lists] ( src/main/ruby/g0001_0100/s0021_merge_two_sorted_lists/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 66 | 59.01
1004
1018
1005
1019
####Day 8 Linked List
1006
1020
@@ -1011,6 +1025,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1011
1025
1012
1026
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1013
1027
|-|-|-|-|-|-
1028
+ | 0020 |[ Valid Parentheses] ( src/main/ruby/g0001_0100/s0020_valid_parentheses/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, String, Stack, Big_O_Time_O(n)_ Space_O(n) | 53 | 90.52
1014
1029
1015
1030
####Day 10 Tree
1016
1031
@@ -1043,6 +1058,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1043
1058
1044
1059
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1045
1060
|-|-|-|-|-|-
1061
+ | 0015 |[ 3Sum] ( src/main/ruby/g0001_0100/s0015_3sum/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Big_O_Time_O(n\* log(n))_ Space_O(n^2) | 659 | 83.74
1046
1062
1047
1063
####Day 2 Array
1048
1064
@@ -1100,11 +1116,13 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1100
1116
1101
1117
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1102
1118
|-|-|-|-|-|-
1119
+ | 0024 |[ Swap Nodes in Pairs] ( src/main/ruby/g0001_0100/s0024_swap_nodes_in_pairs/solution.rb ) | Medium | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 59 | 76.00
1103
1120
1104
1121
####Day 13 Linked List
1105
1122
1106
1123
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1107
1124
|-|-|-|-|-|-
1125
+ | 0025 |[ Reverse Nodes in k-Group] ( src/main/ruby/g0001_0100/s0025_reverse_nodes_in_k_group/solution.rb ) | Hard | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(k) | 62 | 91.67
1108
1126
1109
1127
####Day 14 Stack Queue
1110
1128
@@ -1172,6 +1190,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1172
1190
1173
1191
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1174
1192
|-|-|-|-|-|-
1193
+ | 0019 |[ Remove Nth Node From End of List] ( src/main/ruby/g0001_0100/s0019_remove_nth_node_from_end_of_list/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Two_Pointers, Linked_List, Big_O_Time_O(L)_ Space_O(L) | 51 | 95.27
1175
1194
1176
1195
####Day 6 Sliding Window
1177
1196
@@ -1198,6 +1217,7 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1198
1217
1199
1218
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1200
1219
|-|-|-|-|-|-
1220
+ | 0021 |[ Merge Two Sorted Lists] ( src/main/ruby/g0001_0100/s0021_merge_two_sorted_lists/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 66 | 59.01
1201
1221
1202
1222
####Day 11 Recursion Backtracking
1203
1223
@@ -1223,6 +1243,16 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1223
1243
1224
1244
| # | Title | Difficulty | Tag | Time, ms | Time, %
1225
1245
|------|----------------|-------------|-------------|----------|---------
1246
+ | 0025 |[ Reverse Nodes in k-Group] ( src/main/ruby/g0001_0100/s0025_reverse_nodes_in_k_group/solution.rb ) | Hard | Top_100_Liked_Questions, Linked_List, Recursion, Data_Structure_II_Day_13_Linked_List, Udemy_Linked_List, Big_O_Time_O(n)_ Space_O(k) | 62 | 91.67
1247
+ | 0024 |[ Swap Nodes in Pairs] ( src/main/ruby/g0001_0100/s0024_swap_nodes_in_pairs/solution.rb ) | Medium | Top_100_Liked_Questions, Linked_List, Recursion, Data_Structure_II_Day_12_Linked_List, Udemy_Linked_List, Big_O_Time_O(n)_ Space_O(1) | 59 | 76.00
1248
+ | 0023 |[ Merge k Sorted Lists] ( src/main/ruby/g0001_0100/s0023_merge_k_sorted_lists/solution.rb ) | 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)) | 76 | 87.95
1249
+ | 0022 |[ Generate Parentheses] ( src/main/ruby/g0001_0100/s0022_generate_parentheses/solution.rb ) | 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) | 43 | 100.00
1250
+ | 0021 |[ Merge Two Sorted Lists] ( src/main/ruby/g0001_0100/s0021_merge_two_sorted_lists/solution.rb ) | 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) | 66 | 59.01
1251
+ | 0020 |[ Valid Parentheses] ( src/main/ruby/g0001_0100/s0020_valid_parentheses/solution.rb ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, String, Stack, Data_Structure_I_Day_9_Stack_Queue, Udemy_Strings, Big_O_Time_O(n)_ Space_O(n) | 53 | 90.52
1252
+ | 0019 |[ Remove Nth Node From End of List] ( src/main/ruby/g0001_0100/s0019_remove_nth_node_from_end_of_list/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Two_Pointers, Linked_List, Algorithm_I_Day_5_Two_Pointers, Level_2_Day_3_Linked_List, Big_O_Time_O(L)_ Space_O(L) | 51 | 95.27
1253
+ | 0017 |[ Letter Combinations of a Phone Number] ( src/main/ruby/g0001_0100/s0017_letter_combinations_of_a_phone_number/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Backtracking, Algorithm_II_Day_11_Recursion_Backtracking, Udemy_Backtracking/Recursion, Big_O_Time_O(4^n)_ Space_O(n) | 49 | 93.94
1254
+ | 0015 |[ 3Sum] ( src/main/ruby/g0001_0100/s0015_3sum/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Data_Structure_II_Day_1_Array, Algorithm_II_Day_3_Two_Pointers, Udemy_Two_Pointers, Big_O_Time_O(n\* log(n))_ Space_O(n^2) | 659 | 83.74
1255
+ | 0011 |[ Container With Most Water] ( src/main/ruby/g0001_0100/s0011_container_with_most_water/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Greedy, Two_Pointers, Algorithm_II_Day_4_Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 114 | 95.98
1226
1256
| 0010 |[ Regular Expression Matching] ( src/main/ruby/g0001_0100/s0010_regular_expression_matching/solution.rb ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Recursion, Udemy_Dynamic_Programming, Big_O_Time_O(m\* n)_ Space_O(m\* n) | 66 | 94.44
1227
1257
| 0009 |[ Palindrome Number] ( src/main/ruby/g0001_0100/s0009_palindrome_number/solution.rb ) | Easy | Math, Udemy_Integers | 83 | 74.19
1228
1258
| 0008 |[ String to Integer (atoi)] ( src/main/ruby/g0001_0100/s0008_string_to_integer_atoi/solution.rb ) | Medium | Top_Interview_Questions, String | 67 | 67.26