@@ -377,6 +377,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
377
377
378
378
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
379
379
|-|-|-|-|-|-
380
+ | 0121 |[ Best Time to Buy and Sell Stock] ( src/main/scala/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Big_O_Time_O(N)_ Space_O(1) | 762 | 98.45
380
381
381
382
#### Day 8
382
383
@@ -398,6 +399,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
398
399
399
400
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
400
401
|-|-|-|-|-|-
402
+ | 0096 |[ Unique Binary Search Trees] ( src/main/scala/g0001_0100/s0096_unique_binary_search_trees/Solution.scala ) | Medium | Top_100_Liked_Questions, Dynamic_Programming, Math, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(n)_ Space_O(1) | 403 | 66.67
401
403
402
404
#### Day 12
403
405
@@ -504,6 +506,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
504
506
505
507
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
506
508
|-|-|-|-|-|-
509
+ | 0104 |[ Maximum Depth of Binary Tree] ( src/main/scala/g0101_0200/s0104_maximum_depth_of_binary_tree/Solution.scala ) | 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) | 472 | 90.83
507
510
508
511
#### Day 11 Containers and Libraries
509
512
@@ -771,11 +774,13 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
771
774
772
775
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
773
776
|-|-|-|-|-|-
777
+ | 0121 |[ Best Time to Buy and Sell Stock] ( src/main/scala/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Big_O_Time_O(N)_ Space_O(1) | 762 | 98.45
774
778
775
779
#### Day 6 Tree
776
780
777
781
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
778
782
|-|-|-|-|-|-
783
+ | 0102 |[ Binary Tree Level Order Traversal] ( src/main/scala/g0101_0200/s0102_binary_tree_level_order_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 522 | 83.33
779
784
780
785
#### Day 7 Binary Search
781
786
@@ -786,6 +791,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
786
791
787
792
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
788
793
|-|-|-|-|-|-
794
+ | 0098 |[ Validate Binary Search Tree] ( src/main/scala/g0001_0100/s0098_validate_binary_search_tree/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 507 | 70.21
789
795
790
796
#### Day 9 Graph/BFS/DFS
791
797
@@ -906,6 +912,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
906
912
907
913
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
908
914
|-|-|-|-|-|-
915
+ | 0101 |[ Symmetric Tree] ( src/main/scala/g0101_0200/s0101_symmetric_tree/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 454 | 90.38
909
916
910
917
#### Day 16 Design
911
918
@@ -961,6 +968,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
961
968
962
969
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
963
970
|-|-|-|-|-|-
971
+ | 0121 |[ Best Time to Buy and Sell Stock] ( src/main/scala/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Big_O_Time_O(N)_ Space_O(1) | 762 | 98.45
964
972
| 0001 |[ Two Sum] ( src/main/scala/g0001_0100/s0001_two_sum/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Big_O_Time_O(n)_ Space_O(n) | 517 | 86.66
965
973
| 0055 |[ Jump Game] ( src/main/scala/g0001_0100/s0055_jump_game/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Greedy, Big_O_Time_O(n)_ Space_O(1) | 622 | 88.31
966
974
| 0075 |[ Sort Colors] ( src/main/scala/g0001_0100/s0075_sort_colors/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Sorting, Two_Pointers, Big_O_Time_O(n)_ Space_O(1) | 450 | 84.21
@@ -997,6 +1005,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
997
1005
998
1006
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
999
1007
|-|-|-|-|-|-
1008
+ | 0114 |[ Flatten Binary Tree to Linked List] ( src/main/scala/g0101_0200/s0114_flatten_binary_tree_to_linked_list/Solution.scala ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Linked_List, Big_O_Time_O(N)_ Space_O(N) | 491 | 54.17
1000
1009
| 0024 |[ Swap Nodes in Pairs] ( src/main/scala/g0001_0100/s0024_swap_nodes_in_pairs/Solution.scala ) | Medium | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(1) | 441 | 95.65
1001
1010
| 0021 |[ Merge Two Sorted Lists] ( src/main/scala/g0001_0100/s0021_merge_two_sorted_lists/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Linked_List, Recursion, Big_O_Time_O(m+n)_ Space_O(m+n) | 480 | 89.72
1002
1011
| 0025 |[ Reverse Nodes in k-Group] ( src/main/scala/g0001_0100/s0025_reverse_nodes_in_k_group/Solution.scala ) | Hard | Top_100_Liked_Questions, Linked_List, Recursion, Big_O_Time_O(n)_ Space_O(k) | 520 | 80.00
@@ -1005,6 +1014,11 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1005
1014
1006
1015
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1007
1016
|-|-|-|-|-|-
1017
+ | 0094 |[ Binary Tree Inorder Traversal] ( src/main/scala/g0001_0100/s0094_binary_tree_inorder_traversal/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Big_O_Time_O(n)_ Space_O(n) | 456 | 68.42
1018
+ | 0102 |[ Binary Tree Level Order Traversal] ( src/main/scala/g0101_0200/s0102_binary_tree_level_order_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 522 | 83.33
1019
+ | 0104 |[ Maximum Depth of Binary Tree] ( src/main/scala/g0101_0200/s0104_maximum_depth_of_binary_tree/Solution.scala ) | 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) | 472 | 90.83
1020
+ | 0124 |[ Binary Tree Maximum Path Sum] ( src/main/scala/g0101_0200/s0124_binary_tree_maximum_path_sum/Solution.scala ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Dynamic_Programming, Depth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 523 | 89.47
1021
+ | 0098 |[ Validate Binary Search Tree] ( src/main/scala/g0001_0100/s0098_validate_binary_search_tree/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 507 | 70.21
1008
1022
1009
1023
#### Udemy Trie and Heap
1010
1024
@@ -1063,6 +1077,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1063
1077
1064
1078
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1065
1079
|-|-|-|-|-|-
1080
+ | 0121 |[ Best Time to Buy and Sell Stock] ( src/main/scala/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Big_O_Time_O(N)_ Space_O(1) | 762 | 98.45
1066
1081
1067
1082
#### Day 4 Array
1068
1083
@@ -1101,11 +1116,15 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1101
1116
1102
1117
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1103
1118
|-|-|-|-|-|-
1119
+ | 0094 |[ Binary Tree Inorder Traversal] ( src/main/scala/g0001_0100/s0094_binary_tree_inorder_traversal/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Big_O_Time_O(n)_ Space_O(n) | 456 | 68.42
1104
1120
1105
1121
#### Day 11 Tree
1106
1122
1107
1123
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1108
1124
|-|-|-|-|-|-
1125
+ | 0102 |[ Binary Tree Level Order Traversal] ( src/main/scala/g0101_0200/s0102_binary_tree_level_order_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(N) | 522 | 83.33
1126
+ | 0104 |[ Maximum Depth of Binary Tree] ( src/main/scala/g0101_0200/s0104_maximum_depth_of_binary_tree/Solution.scala ) | 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) | 472 | 90.83
1127
+ | 0101 |[ Symmetric Tree] ( src/main/scala/g0101_0200/s0101_symmetric_tree/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 454 | 90.38
1109
1128
1110
1129
#### Day 12 Tree
1111
1130
@@ -1121,6 +1140,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1121
1140
1122
1141
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1123
1142
|-|-|-|-|-|-
1143
+ | 0098 |[ Validate Binary Search Tree] ( src/main/scala/g0001_0100/s0098_validate_binary_search_tree/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 507 | 70.21
1124
1144
1125
1145
### Data Structure II
1126
1146
@@ -1207,6 +1227,7 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1207
1227
1208
1228
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
1209
1229
|-|-|-|-|-|-
1230
+ | 0105 |[ Construct Binary Tree from Preorder and Inorder Traversal] ( src/main/scala/g0101_0200/s0105_construct_binary_tree_from_preorder_and_inorder_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Tree, Binary_Tree, Divide_and_Conquer, Big_O_Time_O(N)_ Space_O(N) | 564 | 91.67
1210
1231
1211
1232
#### Day 16 Tree
1212
1233
@@ -1320,6 +1341,16 @@ implementation 'com.github.javadev:leetcode-in-scala:1.0'
1320
1341
1321
1342
| # | Title | Difficulty | Tag | Time, ms | Time, %
1322
1343
|------|----------------|-------------|-------------|----------|---------
1344
+ | 0124 |[ Binary Tree Maximum Path Sum] ( src/main/scala/g0101_0200/s0124_binary_tree_maximum_path_sum/Solution.scala ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Dynamic_Programming, Depth_First_Search, Tree, Binary_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(N)_ Space_O(N) | 523 | 89.47
1345
+ | 0121 |[ Best Time to Buy and Sell Stock] ( src/main/scala/g0101_0200/s0121_best_time_to_buy_and_sell_stock/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Data_Structure_I_Day_3_Array, Dynamic_Programming_I_Day_7, Level_1_Day_5_Greedy, Udemy_Arrays, Big_O_Time_O(N)_ Space_O(1) | 762 | 98.45
1346
+ | 0114 |[ Flatten Binary Tree to Linked List] ( src/main/scala/g0101_0200/s0114_flatten_binary_tree_to_linked_list/Solution.scala ) | Medium | Top_100_Liked_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Linked_List, Udemy_Linked_List, Big_O_Time_O(N)_ Space_O(N) | 491 | 54.17
1347
+ | 0105 |[ Construct Binary Tree from Preorder and Inorder Traversal] ( src/main/scala/g0101_0200/s0105_construct_binary_tree_from_preorder_and_inorder_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table, Tree, Binary_Tree, Divide_and_Conquer, Data_Structure_II_Day_15_Tree, Big_O_Time_O(N)_ Space_O(N) | 564 | 91.67
1348
+ | 0104 |[ Maximum Depth of Binary Tree] ( src/main/scala/g0101_0200/s0104_maximum_depth_of_binary_tree/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_11_Tree, Programming_Skills_I_Day_10_Linked_List_and_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(N)_ Space_O(H) | 472 | 90.83
1349
+ | 0102 |[ Binary Tree Level Order Traversal] ( src/main/scala/g0101_0200/s0102_binary_tree_level_order_traversal/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_11_Tree, Level_1_Day_6_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(N)_ Space_O(N) | 522 | 83.33
1350
+ | 0101 |[ Symmetric Tree] ( src/main/scala/g0101_0200/s0101_symmetric_tree/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Data_Structure_I_Day_11_Tree, Level_2_Day_15_Tree, Big_O_Time_O(N)_ Space_O(log(N)) | 454 | 90.38
1351
+ | 0098 |[ Validate Binary Search Tree] ( src/main/scala/g0001_0100/s0098_validate_binary_search_tree/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Binary_Search_Tree, Data_Structure_I_Day_14_Tree, Level_1_Day_8_Binary_Search_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(N)_ Space_O(log(N)) | 507 | 70.21
1352
+ | 0096 |[ Unique Binary Search Trees] ( src/main/scala/g0001_0100/s0096_unique_binary_search_trees/Solution.scala ) | Medium | Top_100_Liked_Questions, Dynamic_Programming, Math, Tree, Binary_Tree, Binary_Search_Tree, Dynamic_Programming_I_Day_11, Big_O_Time_O(n)_ Space_O(1) | 403 | 66.67
1353
+ | 0094 |[ Binary Tree Inorder Traversal] ( src/main/scala/g0001_0100/s0094_binary_tree_inorder_traversal/Solution.scala ) | Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Tree, Binary_Tree, Stack, Data_Structure_I_Day_10_Tree, Udemy_Tree_Stack_Queue, Big_O_Time_O(n)_ Space_O(n) | 456 | 68.42
1323
1354
| 0084 |[ Largest Rectangle in Histogram] ( src/main/scala/g0001_0100/s0084_largest_rectangle_in_histogram/Solution.scala ) | Hard | Top_100_Liked_Questions, Top_Interview_Questions, Array, Stack, Monotonic_Stack, Big_O_Time_O(n_log_n)_ Space_O(log_n) | 904 | 71.43
1324
1355
| 0079 |[ Word Search] ( src/main/scala/g0001_0100/s0079_word_search/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Matrix, Backtracking, Algorithm_II_Day_11_Recursion_Backtracking, Big_O_Time_O(4^(m\* n))_ Space_O(m\* n) | 783 | 94.87
1325
1356
| 0078 |[ Subsets] ( src/main/scala/g0001_0100/s0078_subsets/Solution.scala ) | Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Bit_Manipulation, Backtracking, Algorithm_II_Day_9_Recursion_Backtracking, Udemy_Backtracking/Recursion, Big_O_Time_O(2^n)_ Space_O(n\* 2^n) | 452 | 87.50
0 commit comments