@@ -11,7 +11,6 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
11
11
> [ "For coding interview preparation, LeetCode is one of the best online resource providing a rich library of more than 300 real coding interview questions for you to practice from using one of the 7 supported languages - C, C++, Java, Python, C#, JavaScript, Ruby."] ( https://www.quora.com/How-effective-is-Leetcode-for-preparing-for-technical-interviews )
12
12
13
13
##
14
- * [ Binary Search I] ( #binary-search-i )
15
14
* [ Binary Search II] ( #binary-search-ii )
16
15
* [ Dynamic Programming I] ( #dynamic-programming-i )
17
16
* [ Programming Skills I] ( #programming-skills-i )
@@ -25,71 +24,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
25
24
* [ Data Structure II] ( #data-structure-ii )
26
25
* [ Algorithm I] ( #algorithm-i )
27
26
* [ Algorithm II] ( #algorithm-ii )
28
-
29
- ### Binary Search I
30
-
31
- #### Day 1
32
-
33
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
34
- |-|-|-|-|-|-
35
-
36
- #### Day 2
37
-
38
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
39
- |-|-|-|-|-|-
40
- | 0035 |[ Search Insert Position] ( LeetCodeNet/G0001_0100/S0035_search_insert_position/Solution.cs ) | Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 106 | 6.17
41
-
42
- #### Day 3
43
-
44
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
45
- |-|-|-|-|-|-
46
-
47
- #### Day 4
48
-
49
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
50
- |-|-|-|-|-|-
51
-
52
- #### Day 5
53
-
54
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
55
- |-|-|-|-|-|-
56
- | 0034 |[ Find First and Last Position of Element in Sorted Array] ( LeetCodeNet/G0001_0100/S0034_find_first_and_last_position_of_element_in_sorted_array/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 171 | 5.87
57
-
58
- #### Day 6
59
-
60
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
61
- |-|-|-|-|-|-
62
-
63
- #### Day 7
64
-
65
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
66
- |-|-|-|-|-|-
67
-
68
- #### Day 8
69
-
70
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
71
- |-|-|-|-|-|-
72
-
73
- #### Day 9
74
-
75
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
76
- |-|-|-|-|-|-
77
-
78
- #### Day 10
79
-
80
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
81
- |-|-|-|-|-|-
82
-
83
- #### Day 11
84
-
85
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
86
- |-|-|-|-|-|-
87
- | 0033 |[ Search in Rotated Sorted Array] ( LeetCodeNet/G0001_0100/S0033_search_in_rotated_sorted_array/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 63 | 96.89
88
-
89
- #### Day 12
90
-
91
- | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
92
- |-|-|-|-|-|-
27
+ * [ Binary Search I] ( #binary-search-i )
93
28
94
29
### Binary Search II
95
30
@@ -214,12 +149,14 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
214
149
215
150
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
216
151
|-|-|-|-|-|-
152
+ | 0055 |[ Jump Game] ( LeetCodeNet/G0001_0100/S0055_jump_game/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 189 | 38.02
217
153
| 0045 |[ Jump Game II] ( LeetCodeNet/G0001_0100/S0045_jump_game_ii/Solution.cs ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 144 | 15.35
218
154
219
155
#### Day 5
220
156
221
157
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
222
158
|-|-|-|-|-|-
159
+ | 0053 |[ Maximum Subarray] ( LeetCodeNet/G0001_0100/S0053_maximum_subarray/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Divide_and_Conquer, Big_O_Time_O(n)_ Space_O(1) | 276 | 20.05
223
160
224
161
#### Day 6
225
162
@@ -401,6 +338,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
401
338
402
339
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
403
340
|-|-|-|-|-|-
341
+ | 0048 |[ Rotate Image] ( LeetCodeNet/G0001_0100/S0048_rotate_image/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Matrix, Big_O_Time_O(n^2)_ Space_O(1) | 92 | 97.78
404
342
405
343
#### Day 8
406
344
@@ -421,6 +359,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
421
359
422
360
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
423
361
|-|-|-|-|-|-
362
+ | 0049 |[ Group Anagrams] ( LeetCodeNet/G0001_0100/S0049_group_anagrams/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, String, Hash_Table, Sorting, Big_O_Time_O(n\* k_log_k)_ Space_O(n) | 145 | 96.20
424
363
425
364
#### Day 12
426
365
@@ -794,6 +733,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
794
733
| 0003 |[ Longest Substring Without Repeating Characters] ( LeetCodeNet/G0001_0100/S0003_longest_substring_without_repeating_characters/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Hash_Table, Sliding_Window, Big_O_Time_O(n)_ Space_O(1) | 50 | 98.40
795
734
| 0020 |[ Valid Parentheses] ( LeetCodeNet/G0001_0100/S0020_valid_parentheses/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, String, Stack, Big_O_Time_O(n)_ Space_O(n) | 53 | 96.68
796
735
| 0005 |[ Longest Palindromic Substring] ( LeetCodeNet/G0001_0100/S0005_longest_palindromic_substring/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, String, Dynamic_Programming, Big_O_Time_O(n)_ Space_O(n) | 61 | 99.50
736
+ | 0049 |[ Group Anagrams] ( LeetCodeNet/G0001_0100/S0049_group_anagrams/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, String, Hash_Table, Sorting, Big_O_Time_O(n\* k_log_k)_ Space_O(n) | 145 | 96.20
797
737
798
738
#### Udemy Binary Search
799
739
@@ -806,6 +746,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
806
746
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
807
747
|-|-|-|-|-|-
808
748
| 0001 |[ Two Sum] ( LeetCodeNet/G0001_0100/S0001_two_sum/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 134 | 81.26
749
+ | 0055 |[ Jump Game] ( LeetCodeNet/G0001_0100/S0055_jump_game/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 189 | 38.02
809
750
| 0041 |[ First Missing Positive] ( LeetCodeNet/G0001_0100/S0041_first_missing_positive/Solution.cs ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 192 | 13.98
810
751
811
752
#### Udemy Two Pointers
@@ -819,6 +760,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
819
760
820
761
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
821
762
|-|-|-|-|-|-
763
+ | 0053 |[ Maximum Subarray] ( LeetCodeNet/G0001_0100/S0053_maximum_subarray/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Divide_and_Conquer, Big_O_Time_O(n)_ Space_O(1) | 276 | 20.05
822
764
823
765
#### Udemy Sorting Algorithms
824
766
@@ -829,6 +771,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
829
771
830
772
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
831
773
|-|-|-|-|-|-
774
+ | 0048 |[ Rotate Image] ( LeetCodeNet/G0001_0100/S0048_rotate_image/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Matrix, Big_O_Time_O(n^2)_ Space_O(1) | 92 | 97.78
832
775
833
776
#### Udemy Linked List
834
777
@@ -884,6 +827,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
884
827
885
828
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
886
829
|-|-|-|-|-|-
830
+ | 0053 |[ Maximum Subarray] ( LeetCodeNet/G0001_0100/S0053_maximum_subarray/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Divide_and_Conquer, Big_O_Time_O(n)_ Space_O(1) | 276 | 20.05
887
831
888
832
#### Day 2 Array
889
833
@@ -970,6 +914,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
970
914
971
915
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
972
916
|-|-|-|-|-|-
917
+ | 0048 |[ Rotate Image] ( LeetCodeNet/G0001_0100/S0048_rotate_image/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Matrix, Big_O_Time_O(n^2)_ Space_O(1) | 92 | 97.78
973
918
974
919
#### Day 4 Array
975
920
@@ -995,6 +940,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
995
940
996
941
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
997
942
|-|-|-|-|-|-
943
+ | 0049 |[ Group Anagrams] ( LeetCodeNet/G0001_0100/S0049_group_anagrams/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, String, Hash_Table, Sorting, Big_O_Time_O(n\* k_log_k)_ Space_O(n) | 145 | 96.20
998
944
999
945
#### Day 9 String
1000
946
@@ -1210,6 +1156,7 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
1210
1156
1211
1157
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1212
1158
|-|-|-|-|-|-
1159
+ | 0055 |[ Jump Game] ( LeetCodeNet/G0001_0100/S0055_jump_game/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 189 | 38.02
1213
1160
1214
1161
#### Day 13 Dynamic Programming
1215
1162
@@ -1258,10 +1205,80 @@ C#-based LeetCode algorithm problem solutions, regularly updated.
1258
1205
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1259
1206
|-|-|-|-|-|-
1260
1207
1208
+ ### Binary Search I
1209
+
1210
+ #### Day 1
1211
+
1212
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1213
+ |-|-|-|-|-|-
1214
+
1215
+ #### Day 2
1216
+
1217
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1218
+ |-|-|-|-|-|-
1219
+ | 0035 |[ Search Insert Position] ( LeetCodeNet/G0001_0100/S0035_search_insert_position/Solution.cs ) | Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 106 | 6.17
1220
+
1221
+ #### Day 3
1222
+
1223
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1224
+ |-|-|-|-|-|-
1225
+
1226
+ #### Day 4
1227
+
1228
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1229
+ |-|-|-|-|-|-
1230
+
1231
+ #### Day 5
1232
+
1233
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1234
+ |-|-|-|-|-|-
1235
+ | 0034 |[ Find First and Last Position of Element in Sorted Array] ( LeetCodeNet/G0001_0100/S0034_find_first_and_last_position_of_element_in_sorted_array/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 171 | 5.87
1236
+
1237
+ #### Day 6
1238
+
1239
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1240
+ |-|-|-|-|-|-
1241
+
1242
+ #### Day 7
1243
+
1244
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1245
+ |-|-|-|-|-|-
1246
+
1247
+ #### Day 8
1248
+
1249
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1250
+ |-|-|-|-|-|-
1251
+
1252
+ #### Day 9
1253
+
1254
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1255
+ |-|-|-|-|-|-
1256
+
1257
+ #### Day 10
1258
+
1259
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1260
+ |-|-|-|-|-|-
1261
+
1262
+ #### Day 11
1263
+
1264
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1265
+ |-|-|-|-|-|-
1266
+ | 0033 |[ Search in Rotated Sorted Array] ( LeetCodeNet/G0001_0100/S0033_search_in_rotated_sorted_array/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 63 | 96.89
1267
+
1268
+ #### Day 12
1269
+
1270
+ | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1271
+ |-|-|-|-|-|-
1272
+
1261
1273
## Algorithms
1262
1274
1263
1275
| # | Title | Difficulty | Tag | Time, ms | Time, %
1264
1276
|------|----------------|-------------|-------------|----------|---------
1277
+ | 0055 |[ Jump Game] ( LeetCodeNet/G0001_0100/S0055_jump_game/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Algorithm_II_Day_12_Dynamic_Programming, Dynamic_Programming_I_Day_4, Udemy_Arrays, Big_O_Time_O(n)_ Space_O(1) | 189 | 38.02
1278
+ | 0053 |[ Maximum Subarray] ( LeetCodeNet/G0001_0100/S0053_maximum_subarray/Solution.cs ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Divide_and_Conquer, Data_Structure_I_Day_1_Array, Dynamic_Programming_I_Day_5, Udemy_Famous_Algorithm, Big_O_Time_O(n)_ Space_O(1) | 276 | 20.05
1279
+ | 0051 |[ N-Queens] ( LeetCodeNet/G0001_0100/S0051_n_queens/Solution.cs ) | Hard | Top_100_Liked_Questions, Array, Backtracking, Big_O_Time_O(N!)_ Space_O(N) | 106 | 96.34
1280
+ | 0049 |[ Group Anagrams] ( LeetCodeNet/G0001_0100/S0049_group_anagrams/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, String, Hash_Table, Sorting, Data_Structure_II_Day_8_String, Programming_Skills_II_Day_11, Udemy_Strings, Big_O_Time_O(n\* k_log_k)_ Space_O(n) | 145 | 96.20
1281
+ | 0048 |[ Rotate Image] ( LeetCodeNet/G0001_0100/S0048_rotate_image/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Matrix, Data_Structure_II_Day_3_Array, Programming_Skills_II_Day_7, Udemy_2D_Arrays/Matrix, Big_O_Time_O(n^2)_ Space_O(1) | 92 | 97.78
1265
1282
| 0046 |[ Permutations] ( LeetCodeNet/G0001_0100/S0046_permutations/Solution.cs ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Backtracking, Algorithm_I_Day_11_Recursion_Backtracking, Level_2_Day_20_Brute_Force/Backtracking, Udemy_Backtracking/Recursion, Big_O_Time_O(n\* n!)_ Space_O(n+n!) | 148 | 5.56
1266
1283
| 0045 |[ Jump Game II] ( LeetCodeNet/G0001_0100/S0045_jump_game_ii/Solution.cs ) | Medium | Top_100_Liked_Questions, Array, Dynamic_Programming, Greedy, Algorithm_II_Day_13_Dynamic_Programming, Dynamic_Programming_I_Day_4, Big_O_Time_O(n)_ Space_O(1) | 144 | 15.35
1267
1284
| 0042 |[ Trapping Rain Water] ( LeetCodeNet/G0001_0100/S0042_trapping_rain_water/Solution.cs ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Two_Pointers, Stack, Monotonic_Stack, Dynamic_Programming_I_Day_9, Udemy_Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 81 | 89.96
0 commit comments