|
6 | 6 | [](https://github.com/javadev/LeetCode-in-Kotlin/fork)
|
7 | 7 | > ["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)
|
8 | 8 |
|
9 |
| -* [Binary Search I](#binary-search-i) |
10 | 9 | * [Binary Search II](#binary-search-ii)
|
11 | 10 | * [Dynamic Programming I](#dynamic-programming-i)
|
12 | 11 | * [Programming Skills I](#programming-skills-i)
|
|
21 | 20 | * [Data Structure II](#data-structure-ii)
|
22 | 21 | * [Algorithm I](#algorithm-i)
|
23 | 22 | * [Algorithm II](#algorithm-ii)
|
24 |
| - |
25 |
| -### Binary Search I |
26 |
| - |
27 |
| -#### Day 1 |
28 |
| - |
29 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
30 |
| -|-|-|-|-|-|- |
31 |
| -| 0704 |[Binary Search](src/main/kotlin/g0701_0800/s0704_binary_search)| Easy | Top_100_Liked_Questions, Array, Binary_Search | 261 | 77.91 |
32 |
| -| 0374 |[Guess Number Higher or Lower](src/main/kotlin/g0301_0400/s0374_guess_number_higher_or_lower)| Easy | Binary_Search, Interactive, LeetCode_75_Binary_Search | 134 | 94.19 |
33 |
| - |
34 |
| -#### Day 2 |
35 |
| - |
36 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
37 |
| -|-|-|-|-|-|- |
38 |
| -| 0035 |[Search Insert Position](src/main/kotlin/g0001_0100/s0035_search_insert_position)| Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 159 | 93.03 |
39 |
| -| 0852 |[Peak Index in a Mountain Array](src/main/kotlin/g0801_0900/s0852_peak_index_in_a_mountain_array)| Medium | Array, Binary_Search | 433 | 94.29 |
40 |
| - |
41 |
| -#### Day 3 |
42 |
| - |
43 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
44 |
| -|-|-|-|-|-|- |
45 |
| -| 0367 |[Valid Perfect Square](src/main/kotlin/g0301_0400/s0367_valid_perfect_square)| Easy | Math, Binary_Search | 137 | 94.55 |
46 |
| -| 1385 |[Find the Distance Value Between Two Arrays](src/main/kotlin/g1301_1400/s1385_find_the_distance_value_between_two_arrays)| Easy | Array, Sorting, Binary_Search, Two_Pointers | 190 | 84.62 |
47 |
| - |
48 |
| -#### Day 4 |
49 |
| - |
50 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
51 |
| -|-|-|-|-|-|- |
52 |
| -| 0069 |[Sqrt(x)](src/main/kotlin/g0001_0100/s0069_sqrtx)| Easy | Top_Interview_Questions, Math, Binary_Search | 140 | 94.72 |
53 |
| -| 0744 |[Find Smallest Letter Greater Than Target](src/main/kotlin/g0701_0800/s0744_find_smallest_letter_greater_than_target)| Easy | Array, Binary_Search | 162 | 100.00 |
54 |
| - |
55 |
| -#### Day 5 |
56 |
| - |
57 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
58 |
| -|-|-|-|-|-|- |
59 |
| -| 0278 |[First Bad Version](src/main/kotlin/g0201_0300/s0278_first_bad_version)| Easy | Binary_Search, Interactive | 349 | 76.86 |
60 |
| -| 0034 |[Find First and Last Position of Element in Sorted Array](src/main/kotlin/g0001_0100/s0034_find_first_and_last_position_of_element_in_sorted_array)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 174 | 100.00 |
61 |
| - |
62 |
| -#### Day 6 |
63 |
| - |
64 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
65 |
| -|-|-|-|-|-|- |
66 |
| -| 0441 |[Arranging Coins](src/main/kotlin/g0401_0500/s0441_arranging_coins)| Easy | Math, Binary_Search | 150 | 84.21 |
67 |
| -| 1539 |[Kth Missing Positive Number](src/main/kotlin/g1501_1600/s1539_kth_missing_positive_number)| Easy | Array, Binary_Search | 153 | 100.00 |
68 |
| - |
69 |
| -#### Day 7 |
70 |
| - |
71 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
72 |
| -|-|-|-|-|-|- |
73 |
| -| 0167 |[Two Sum II - Input Array Is Sorted](src/main/kotlin/g0101_0200/s0167_two_sum_ii_input_array_is_sorted)| Medium | Array, Binary_Search, Two_Pointers | 403 | 68.74 |
74 |
| -| 1608 |[Special Array With X Elements Greater Than or Equal X](src/main/kotlin/g1601_1700/s1608_special_array_with_x_elements_greater_than_or_equal_x)| Easy | Array, Sorting, Binary_Search | 147 | 81.82 |
75 |
| - |
76 |
| -#### Day 8 |
77 |
| - |
78 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
79 |
| -|-|-|-|-|-|- |
80 |
| -| 1351 |[Count Negative Numbers in a Sorted Matrix](src/main/kotlin/g1301_1400/s1351_count_negative_numbers_in_a_sorted_matrix)| Easy | Array, Binary_Search, Matrix | 206 | 71.43 |
81 |
| -| 0074 |[Search a 2D Matrix](src/main/kotlin/g0001_0100/s0074_search_a_2d_matrix)| Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Big_O_Time_O(endRow+endCol)_Space_O(1) | 159 | 74.46 |
82 |
| - |
83 |
| -#### Day 9 |
84 |
| - |
85 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
86 |
| -|-|-|-|-|-|- |
87 |
| -| 1337 |[The K Weakest Rows in a Matrix](src/main/kotlin/g1301_1400/s1337_the_k_weakest_rows_in_a_matrix)| Easy | Array, Sorting, Binary_Search, Matrix, Heap_Priority_Queue | 216 | 77.59 |
88 |
| -| 1346 |[Check If N and Its Double Exist](src/main/kotlin/g1301_1400/s1346_check_if_n_and_its_double_exist)| Easy | Array, Hash_Table, Sorting, Binary_Search, Two_Pointers | 175 | 70.83 |
89 |
| - |
90 |
| -#### Day 10 |
91 |
| - |
92 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
93 |
| -|-|-|-|-|-|- |
94 |
| -| 0350 |[Intersection of Two Arrays II](src/main/kotlin/g0301_0400/s0350_intersection_of_two_arrays_ii)| Easy | Array, Hash_Table, Sorting, Binary_Search, Two_Pointers | 321 | 73.37 |
95 |
| -| 0633 |[Sum of Square Numbers](src/main/kotlin/g0601_0700/s0633_sum_of_square_numbers)| Medium | Math, Binary_Search, Two_Pointers | 126 | 100.00 |
96 |
| - |
97 |
| -#### Day 11 |
98 |
| - |
99 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
100 |
| -|-|-|-|-|-|- |
101 |
| -| 1855 |[Maximum Distance Between a Pair of Values](src/main/kotlin/g1801_1900/s1855_maximum_distance_between_a_pair_of_values)| Medium | Array, Greedy, Binary_Search, Two_Pointers | 458 | 100.00 |
102 |
| -| 0033 |[Search in Rotated Sorted Array](src/main/kotlin/g0001_0100/s0033_search_in_rotated_sorted_array)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 151 | 93.77 |
103 |
| - |
104 |
| -#### Day 12 |
105 |
| - |
106 |
| -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
107 |
| -|-|-|-|-|-|- |
108 |
| -| 0153 |[Find Minimum in Rotated Sorted Array](src/main/kotlin/g0101_0200/s0153_find_minimum_in_rotated_sorted_array)| Medium | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_N)_Space_O(log_N) | 262 | 60.96 |
| 23 | +* [Binary Search I](#binary-search-i) |
109 | 24 |
|
110 | 25 | ### Binary Search II
|
111 | 26 |
|
|
2084 | 1999 | | 0202 |[Happy Number](src/main/kotlin/g0201_0300/s0202_happy_number)| Easy | Top_Interview_Questions, Hash_Table, Math, Two_Pointers | 261 | 45.08
|
2085 | 2000 | | 0149 |[Max Points on a Line](src/main/kotlin/g0101_0200/s0149_max_points_on_a_line)| Hard | Top_Interview_Questions, Array, Hash_Table, Math, Geometry | 307 | 83.33
|
2086 | 2001 |
|
| 2002 | +### Binary Search I |
| 2003 | + |
| 2004 | +#### Day 1 |
| 2005 | + |
| 2006 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2007 | +|-|-|-|-|-|- |
| 2008 | +| 0704 |[Binary Search](src/main/kotlin/g0701_0800/s0704_binary_search)| Easy | Top_100_Liked_Questions, Array, Binary_Search | 261 | 77.91 |
| 2009 | +| 0374 |[Guess Number Higher or Lower](src/main/kotlin/g0301_0400/s0374_guess_number_higher_or_lower)| Easy | Binary_Search, Interactive, LeetCode_75_Binary_Search | 134 | 94.19 |
| 2010 | + |
| 2011 | +#### Day 2 |
| 2012 | + |
| 2013 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2014 | +|-|-|-|-|-|- |
| 2015 | +| 0035 |[Search Insert Position](src/main/kotlin/g0001_0100/s0035_search_insert_position)| Easy | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 159 | 93.03 |
| 2016 | +| 0852 |[Peak Index in a Mountain Array](src/main/kotlin/g0801_0900/s0852_peak_index_in_a_mountain_array)| Medium | Array, Binary_Search | 433 | 94.29 |
| 2017 | + |
| 2018 | +#### Day 3 |
| 2019 | + |
| 2020 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2021 | +|-|-|-|-|-|- |
| 2022 | +| 0367 |[Valid Perfect Square](src/main/kotlin/g0301_0400/s0367_valid_perfect_square)| Easy | Math, Binary_Search | 137 | 94.55 |
| 2023 | +| 1385 |[Find the Distance Value Between Two Arrays](src/main/kotlin/g1301_1400/s1385_find_the_distance_value_between_two_arrays)| Easy | Array, Sorting, Binary_Search, Two_Pointers | 190 | 84.62 |
| 2024 | + |
| 2025 | +#### Day 4 |
| 2026 | + |
| 2027 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2028 | +|-|-|-|-|-|- |
| 2029 | +| 0069 |[Sqrt(x)](src/main/kotlin/g0001_0100/s0069_sqrtx)| Easy | Top_Interview_Questions, Math, Binary_Search | 140 | 94.72 |
| 2030 | +| 0744 |[Find Smallest Letter Greater Than Target](src/main/kotlin/g0701_0800/s0744_find_smallest_letter_greater_than_target)| Easy | Array, Binary_Search | 162 | 100.00 |
| 2031 | + |
| 2032 | +#### Day 5 |
| 2033 | + |
| 2034 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2035 | +|-|-|-|-|-|- |
| 2036 | +| 0278 |[First Bad Version](src/main/kotlin/g0201_0300/s0278_first_bad_version)| Easy | Binary_Search, Interactive | 349 | 76.86 |
| 2037 | +| 0034 |[Find First and Last Position of Element in Sorted Array](src/main/kotlin/g0001_0100/s0034_find_first_and_last_position_of_element_in_sorted_array)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 174 | 100.00 |
| 2038 | + |
| 2039 | +#### Day 6 |
| 2040 | + |
| 2041 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2042 | +|-|-|-|-|-|- |
| 2043 | +| 0441 |[Arranging Coins](src/main/kotlin/g0401_0500/s0441_arranging_coins)| Easy | Math, Binary_Search | 150 | 84.21 |
| 2044 | +| 1539 |[Kth Missing Positive Number](src/main/kotlin/g1501_1600/s1539_kth_missing_positive_number)| Easy | Array, Binary_Search | 153 | 100.00 |
| 2045 | + |
| 2046 | +#### Day 7 |
| 2047 | + |
| 2048 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2049 | +|-|-|-|-|-|- |
| 2050 | +| 0167 |[Two Sum II - Input Array Is Sorted](src/main/kotlin/g0101_0200/s0167_two_sum_ii_input_array_is_sorted)| Medium | Array, Binary_Search, Two_Pointers | 403 | 68.74 |
| 2051 | +| 1608 |[Special Array With X Elements Greater Than or Equal X](src/main/kotlin/g1601_1700/s1608_special_array_with_x_elements_greater_than_or_equal_x)| Easy | Array, Sorting, Binary_Search | 147 | 81.82 |
| 2052 | + |
| 2053 | +#### Day 8 |
| 2054 | + |
| 2055 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2056 | +|-|-|-|-|-|- |
| 2057 | +| 1351 |[Count Negative Numbers in a Sorted Matrix](src/main/kotlin/g1301_1400/s1351_count_negative_numbers_in_a_sorted_matrix)| Easy | Array, Binary_Search, Matrix | 206 | 71.43 |
| 2058 | +| 0074 |[Search a 2D Matrix](src/main/kotlin/g0001_0100/s0074_search_a_2d_matrix)| Medium | Top_100_Liked_Questions, Array, Binary_Search, Matrix, Big_O_Time_O(endRow+endCol)_Space_O(1) | 159 | 74.46 |
| 2059 | + |
| 2060 | +#### Day 9 |
| 2061 | + |
| 2062 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2063 | +|-|-|-|-|-|- |
| 2064 | +| 1337 |[The K Weakest Rows in a Matrix](src/main/kotlin/g1301_1400/s1337_the_k_weakest_rows_in_a_matrix)| Easy | Array, Sorting, Binary_Search, Matrix, Heap_Priority_Queue | 216 | 77.59 |
| 2065 | +| 1346 |[Check If N and Its Double Exist](src/main/kotlin/g1301_1400/s1346_check_if_n_and_its_double_exist)| Easy | Array, Hash_Table, Sorting, Binary_Search, Two_Pointers | 175 | 70.83 |
| 2066 | + |
| 2067 | +#### Day 10 |
| 2068 | + |
| 2069 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2070 | +|-|-|-|-|-|- |
| 2071 | +| 0350 |[Intersection of Two Arrays II](src/main/kotlin/g0301_0400/s0350_intersection_of_two_arrays_ii)| Easy | Array, Hash_Table, Sorting, Binary_Search, Two_Pointers | 321 | 73.37 |
| 2072 | +| 0633 |[Sum of Square Numbers](src/main/kotlin/g0601_0700/s0633_sum_of_square_numbers)| Medium | Math, Binary_Search, Two_Pointers | 126 | 100.00 |
| 2073 | + |
| 2074 | +#### Day 11 |
| 2075 | + |
| 2076 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2077 | +|-|-|-|-|-|- |
| 2078 | +| 1855 |[Maximum Distance Between a Pair of Values](src/main/kotlin/g1801_1900/s1855_maximum_distance_between_a_pair_of_values)| Medium | Array, Greedy, Binary_Search, Two_Pointers | 458 | 100.00 |
| 2079 | +| 0033 |[Search in Rotated Sorted Array](src/main/kotlin/g0001_0100/s0033_search_in_rotated_sorted_array)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Binary_Search, Big_O_Time_O(log_n)_Space_O(1) | 151 | 93.77 |
| 2080 | + |
| 2081 | +#### Day 12 |
| 2082 | + |
| 2083 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 2084 | +|-|-|-|-|-|- |
| 2085 | +| 0153 |[Find Minimum in Rotated Sorted Array](src/main/kotlin/g0101_0200/s0153_find_minimum_in_rotated_sorted_array)| Medium | Top_100_Liked_Questions, Array, Binary_Search, Big_O_Time_O(log_N)_Space_O(log_N) | 262 | 60.96 |
| 2086 | + |
2087 | 2087 | ## Algorithms
|
2088 | 2088 |
|
2089 | 2089 | | # | Title | Difficulty | Tag | Time, ms | Time, %
|
|
2787 | 2787 | | 2627 |[Debounce](src/main/kotlin/g2601_2700/s2627_debounce)| Medium || 50 | 98.23
|
2788 | 2788 | | 2626 |[Array Reduce Transformation](src/main/kotlin/g2601_2700/s2626_array_reduce_transformation)| Easy || 52 | 91.40
|
2789 | 2789 | | 2625 |[Flatten Deeply Nested Array](src/main/kotlin/g2601_2700/s2625_flatten_deeply_nested_array)| Medium || 84 | 98.71
|
2790 |
| -| 2624 |[Snail Traversal](src/main/kotlin/g2601_2700/s2624_snail_traversal)| Medium || 175 | 92.96 |
| 2790 | +| 2624 |[Snail Traversal](src/main/kotlin/g2601_2700/s2624_snail_traversal)| Medium || 157 | 81.82 |
2791 | 2791 | | 2623 |[Memoize](src/main/kotlin/g2601_2700/s2623_memoize)| Medium || 264 | 97.20
|
2792 | 2792 | | 2622 |[Cache With Time Limit](src/main/kotlin/g2601_2700/s2622_cache_with_time_limit)| Medium || 51 | 94.82
|
2793 | 2793 | | 2621 |[Sleep](src/main/kotlin/g2601_2700/s2621_sleep)| Easy || 40 | 99.59
|
|
0 commit comments