@@ -11,7 +11,6 @@ Ruby-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,73 +24,7 @@ Ruby-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] ( src/main/ruby/g0001_0100/s0035_search_insert_position/solution.rb ) | Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 48 | 97.37
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] ( src/main/ruby/g0001_0100/s0034_find_first_and_last_position_of_element_in_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 60 | 77.52
57
-
58
- ####Day 6
59
-
60
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
61
- |-|-|-|-|-|-
62
-
63
- ####Day 7
64
-
65
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
66
- |-|-|-|-|-|-
67
-
68
- ####Day 8
69
-
70
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
71
- |-|-|-|-|-|-
72
- | 0074 |[ Search a 2D Matrix] ( src/main/ruby/g0001_0100/s0074_search_a_2d_matrix/solution.rb ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Big_O_Time_O(endRow+endCol)_ Space_O(1) | 50 | 97.83
73
-
74
- ####Day 9
75
-
76
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
77
- |-|-|-|-|-|-
78
-
79
- ####Day 10
80
-
81
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
82
- |-|-|-|-|-|-
83
-
84
- ####Day 11
85
-
86
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
87
- |-|-|-|-|-|-
88
- | 0033 |[ Search in Rotated Sorted Array] ( src/main/ruby/g0001_0100/s0033_search_in_rotated_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 59 | 74.85
89
-
90
- ####Day 12
91
-
92
- |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
93
- |-|-|-|-|-|-
94
- | 0153 |[ Find Minimum in Rotated Sorted Array] ( src/main/ruby/g0101_0200/s0153_find_minimum_in_rotated_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_N)_ Space_O(log_N) | 58 | 78.74
27
+ * [ Binary Search I] ( #binary-search-i )
95
28
96
29
###Binary Search II
97
30
@@ -1407,6 +1340,73 @@ Ruby-based LeetCode algorithm problem solutions, regularly updated.
1407
1340
|<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1408
1341
|-|-|-|-|-|-
1409
1342
1343
+ ###Binary Search I
1344
+
1345
+ ####Day 1
1346
+
1347
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1348
+ |-|-|-|-|-|-
1349
+
1350
+ ####Day 2
1351
+
1352
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1353
+ |-|-|-|-|-|-
1354
+ | 0035 |[ Search Insert Position] ( src/main/ruby/g0001_0100/s0035_search_insert_position/solution.rb ) | Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 48 | 97.37
1355
+
1356
+ ####Day 3
1357
+
1358
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1359
+ |-|-|-|-|-|-
1360
+
1361
+ ####Day 4
1362
+
1363
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1364
+ |-|-|-|-|-|-
1365
+
1366
+ ####Day 5
1367
+
1368
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1369
+ |-|-|-|-|-|-
1370
+ | 0034 |[ Find First and Last Position of Element in Sorted Array] ( src/main/ruby/g0001_0100/s0034_find_first_and_last_position_of_element_in_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 60 | 77.52
1371
+
1372
+ ####Day 6
1373
+
1374
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1375
+ |-|-|-|-|-|-
1376
+
1377
+ ####Day 7
1378
+
1379
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1380
+ |-|-|-|-|-|-
1381
+
1382
+ ####Day 8
1383
+
1384
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1385
+ |-|-|-|-|-|-
1386
+ | 0074 |[ Search a 2D Matrix] ( src/main/ruby/g0001_0100/s0074_search_a_2d_matrix/solution.rb ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Big_O_Time_O(endRow+endCol)_ Space_O(1) | 50 | 97.83
1387
+
1388
+ ####Day 9
1389
+
1390
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1391
+ |-|-|-|-|-|-
1392
+
1393
+ ####Day 10
1394
+
1395
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1396
+ |-|-|-|-|-|-
1397
+
1398
+ ####Day 11
1399
+
1400
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1401
+ |-|-|-|-|-|-
1402
+ | 0033 |[ Search in Rotated Sorted Array] ( src/main/ruby/g0001_0100/s0033_search_in_rotated_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_ Space_O(1) | 59 | 74.85
1403
+
1404
+ ####Day 12
1405
+
1406
+ |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- --> |<!-- -->
1407
+ |-|-|-|-|-|-
1408
+ | 0153 |[ Find Minimum in Rotated Sorted Array] ( src/main/ruby/g0101_0200/s0153_find_minimum_in_rotated_sorted_array/solution.rb ) | Medium | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_N)_ Space_O(log_N) | 58 | 78.74
1409
+
1410
1410
##Algorithms
1411
1411
1412
1412
| # | Title | Difficulty | Tag | Time, ms | Time, %