|
2 | 2 | [](https://github.com/javadev/LeetCode-in-Kotlin/fork) |
3 | 3 | > ["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) |
4 | 4 |
|
5 | | -* [Programming Skills I](#programming-skills-i) |
6 | 5 | * [Programming Skills II](#programming-skills-ii) |
7 | 6 | * [Graph Theory I](#graph-theory-i) |
8 | 7 | * [SQL I](#sql-i) |
|
16 | 15 | * [Binary Search I](#binary-search-i) |
17 | 16 | * [Binary Search II](#binary-search-ii) |
18 | 17 | * [Dynamic Programming I](#dynamic-programming-i) |
19 | | - |
20 | | -### Programming Skills I |
21 | | - |
22 | | -#### Day 1 Basic Data Type |
23 | | - |
24 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
25 | | -|-|-|-|-|-|- |
26 | | - |
27 | | -#### Day 2 Operator |
28 | | - |
29 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
30 | | -|-|-|-|-|-|- |
31 | | -| 0191 |[Number of 1 Bits](src/main/kotlin/g0101_0200/s0191_number_of_1_bits)| Easy | Top_Interview_Questions, Bit_Manipulation | 237 | 68.44 |
32 | | - |
33 | | -#### Day 3 Conditional Statements |
34 | | - |
35 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
36 | | -|-|-|-|-|-|- |
37 | | - |
38 | | -#### Day 4 Loop |
39 | | - |
40 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
41 | | -|-|-|-|-|-|- |
42 | | -| 0202 |[Happy Number](src/main/kotlin/g0201_0300/s0202_happy_number)| Easy | Top_Interview_Questions, Hash_Table, Math, Two_Pointers | 261 | 45.08 |
43 | | - |
44 | | -#### Day 5 Function |
45 | | - |
46 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
47 | | -|-|-|-|-|-|- |
48 | | -| 0496 |[Next Greater Element I](src/main/kotlin/g0401_0500/s0496_next_greater_element_i)| Easy | Array, Hash_Table, Stack, Monotonic_Stack | 171 | 100.00 |
49 | | - |
50 | | -#### Day 6 Array |
51 | | - |
52 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
53 | | -|-|-|-|-|-|- |
54 | | -| 0283 |[Move Zeroes](src/main/kotlin/g0201_0300/s0283_move_zeroes)| Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Two_Pointers | 516 | 79.07 |
55 | | - |
56 | | -#### Day 7 Array |
57 | | - |
58 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
59 | | -|-|-|-|-|-|- |
60 | | -| 0566 |[Reshape the Matrix](src/main/kotlin/g0501_0600/s0566_reshape_the_matrix)| Easy | Array, Matrix, Simulation | 239 | 99.05 |
61 | | - |
62 | | -#### Day 8 String |
63 | | - |
64 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
65 | | -|-|-|-|-|-|- |
66 | | -| 0389 |[Find the Difference](src/main/kotlin/g0301_0400/s0389_find_the_difference)| Easy | String, Hash_Table, Sorting, Bit_Manipulation | 256 | 64.81 |
67 | | - |
68 | | -#### Day 9 String |
69 | | - |
70 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
71 | | -|-|-|-|-|-|- |
72 | | - |
73 | | -#### Day 10 Linked List and Tree |
74 | | - |
75 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
76 | | -|-|-|-|-|-|- |
77 | | -| 0104 |[Maximum Depth of Binary Tree](src/main/kotlin/g0101_0200/s0104_maximum_depth_of_binary_tree)| Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 236 | 83.39 |
78 | | -| 0404 |[Sum of Left Leaves](src/main/kotlin/g0401_0500/s0404_sum_of_left_leaves)| Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 173 | 86.05 |
79 | | - |
80 | | -#### Day 11 Containers and Libraries |
81 | | - |
82 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
83 | | -|-|-|-|-|-|- |
84 | | -| 0232 |[Implement Queue using Stacks](src/main/kotlin/g0201_0300/s0232_implement_queue_using_stacks)| Easy | Stack, Design, Queue | 258 | 70.86 |
85 | | -| 0242 |[Valid Anagram](src/main/kotlin/g0201_0300/s0242_valid_anagram)| Easy | Top_Interview_Questions, String, Hash_Table, Sorting | 251 | 87.65 |
86 | | -| 0217 |[Contains Duplicate](src/main/kotlin/g0201_0300/s0217_contains_duplicate)| Easy | Top_Interview_Questions, Array, Hash_Table, Sorting | 719 | 73.49 |
87 | | - |
88 | | -#### Day 12 Class and Object |
89 | | - |
90 | | -| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
91 | | -|-|-|-|-|-|- |
92 | | -| 0303 |[Range Sum Query - Immutable](src/main/kotlin/g0301_0400/s0303_range_sum_query_immutable)| Easy | Array, Design, Prefix_Sum | 472 | 63.64 |
| 18 | +* [Programming Skills I](#programming-skills-i) |
93 | 19 |
|
94 | 20 | ### Programming Skills II |
95 | 21 |
|
|
397 | 323 |
|
398 | 324 | | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
399 | 325 | |-|-|-|-|-|- |
| 326 | +| 0589 |[N-ary Tree Preorder Traversal](src/main/kotlin/g0501_0600/s0589_n_ary_tree_preorder_traversal)| Easy | Depth_First_Search, Tree, Stack | 233 | 84.02 |
400 | 327 | | 0102 |[Binary Tree Level Order Traversal](src/main/kotlin/g0101_0200/s0102_binary_tree_level_order_traversal)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Breadth_First_Search, Tree, Binary_Tree | 332 | 67.53 |
401 | 328 |
|
402 | 329 | #### Day 7 Binary Search |
|
1620 | 1547 | | 0343 |[Integer Break](src/main/kotlin/g0301_0400/s0343_integer_break)| Medium | Dynamic_Programming, Math | 218 | 63.89 |
1621 | 1548 | | 0279 |[Perfect Squares](src/main/kotlin/g0201_0300/s0279_perfect_squares)| Medium | Top_Interview_Questions, Dynamic_Programming, Math, Breadth_First_Search | 176 | 98.80 |
1622 | 1549 |
|
| 1550 | +### Programming Skills I |
| 1551 | + |
| 1552 | +#### Day 1 Basic Data Type |
| 1553 | + |
| 1554 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1555 | +|-|-|-|-|-|- |
| 1556 | + |
| 1557 | +#### Day 2 Operator |
| 1558 | + |
| 1559 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1560 | +|-|-|-|-|-|- |
| 1561 | +| 0191 |[Number of 1 Bits](src/main/kotlin/g0101_0200/s0191_number_of_1_bits)| Easy | Top_Interview_Questions, Bit_Manipulation | 237 | 68.44 |
| 1562 | + |
| 1563 | +#### Day 3 Conditional Statements |
| 1564 | + |
| 1565 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1566 | +|-|-|-|-|-|- |
| 1567 | + |
| 1568 | +#### Day 4 Loop |
| 1569 | + |
| 1570 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1571 | +|-|-|-|-|-|- |
| 1572 | +| 0202 |[Happy Number](src/main/kotlin/g0201_0300/s0202_happy_number)| Easy | Top_Interview_Questions, Hash_Table, Math, Two_Pointers | 261 | 45.08 |
| 1573 | + |
| 1574 | +#### Day 5 Function |
| 1575 | + |
| 1576 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1577 | +|-|-|-|-|-|- |
| 1578 | +| 0589 |[N-ary Tree Preorder Traversal](src/main/kotlin/g0501_0600/s0589_n_ary_tree_preorder_traversal)| Easy | Depth_First_Search, Tree, Stack | 233 | 84.02 |
| 1579 | +| 0496 |[Next Greater Element I](src/main/kotlin/g0401_0500/s0496_next_greater_element_i)| Easy | Array, Hash_Table, Stack, Monotonic_Stack | 171 | 100.00 |
| 1580 | + |
| 1581 | +#### Day 6 Array |
| 1582 | + |
| 1583 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1584 | +|-|-|-|-|-|- |
| 1585 | +| 0283 |[Move Zeroes](src/main/kotlin/g0201_0300/s0283_move_zeroes)| Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Two_Pointers | 516 | 79.07 |
| 1586 | + |
| 1587 | +#### Day 7 Array |
| 1588 | + |
| 1589 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1590 | +|-|-|-|-|-|- |
| 1591 | +| 0566 |[Reshape the Matrix](src/main/kotlin/g0501_0600/s0566_reshape_the_matrix)| Easy | Array, Matrix, Simulation | 239 | 99.05 |
| 1592 | + |
| 1593 | +#### Day 8 String |
| 1594 | + |
| 1595 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1596 | +|-|-|-|-|-|- |
| 1597 | +| 0389 |[Find the Difference](src/main/kotlin/g0301_0400/s0389_find_the_difference)| Easy | String, Hash_Table, Sorting, Bit_Manipulation | 256 | 64.81 |
| 1598 | + |
| 1599 | +#### Day 9 String |
| 1600 | + |
| 1601 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1602 | +|-|-|-|-|-|- |
| 1603 | + |
| 1604 | +#### Day 10 Linked List and Tree |
| 1605 | + |
| 1606 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1607 | +|-|-|-|-|-|- |
| 1608 | +| 0104 |[Maximum Depth of Binary Tree](src/main/kotlin/g0101_0200/s0104_maximum_depth_of_binary_tree)| Easy | Top_100_Liked_Questions, Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 236 | 83.39 |
| 1609 | +| 0404 |[Sum of Left Leaves](src/main/kotlin/g0401_0500/s0404_sum_of_left_leaves)| Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 173 | 86.05 |
| 1610 | + |
| 1611 | +#### Day 11 Containers and Libraries |
| 1612 | + |
| 1613 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1614 | +|-|-|-|-|-|- |
| 1615 | +| 0232 |[Implement Queue using Stacks](src/main/kotlin/g0201_0300/s0232_implement_queue_using_stacks)| Easy | Stack, Design, Queue | 258 | 70.86 |
| 1616 | +| 0242 |[Valid Anagram](src/main/kotlin/g0201_0300/s0242_valid_anagram)| Easy | Top_Interview_Questions, String, Hash_Table, Sorting | 251 | 87.65 |
| 1617 | +| 0217 |[Contains Duplicate](src/main/kotlin/g0201_0300/s0217_contains_duplicate)| Easy | Top_Interview_Questions, Array, Hash_Table, Sorting | 719 | 73.49 |
| 1618 | + |
| 1619 | +#### Day 12 Class and Object |
| 1620 | + |
| 1621 | +| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> |
| 1622 | +|-|-|-|-|-|- |
| 1623 | +| 0303 |[Range Sum Query - Immutable](src/main/kotlin/g0301_0400/s0303_range_sum_query_immutable)| Easy | Array, Design, Prefix_Sum | 472 | 63.64 |
| 1624 | + |
1623 | 1625 | ## Algorithms |
1624 | 1626 |
|
1625 | 1627 | | # | Title | Difficulty | Tag | Time, ms | Time, % |
|
1630 | 1632 | | 0763 |[Partition Labels](src/main/kotlin/g0701_0800/s0763_partition_labels)| Medium | Top_100_Liked_Questions, String, Hash_Table, Greedy, Two_Pointers, Data_Structure_II_Day_7_String | 235 | 84.75 |
1631 | 1633 | | 0739 |[Daily Temperatures](src/main/kotlin/g0701_0800/s0739_daily_temperatures)| Medium | Top_100_Liked_Questions, Array, Stack, Monotonic_Stack, Programming_Skills_II_Day_6 | 936 | 80.54 |
1632 | 1634 | | 0647 |[Palindromic Substrings](src/main/kotlin/g0601_0700/s0647_palindromic_substrings)| Medium | Top_100_Liked_Questions, String, Dynamic_Programming | 266 | 67.83 |
| 1635 | +| 0592 |[Fraction Addition and Subtraction](src/main/kotlin/g0501_0600/s0592_fraction_addition_and_subtraction)| Medium | String, Math, Simulation | 164 | 100.00 |
| 1636 | +| 0591 |[Tag Validator](src/main/kotlin/g0501_0600/s0591_tag_validator)| Hard | String, Stack | 177 | 100.00 |
| 1637 | +| 0590 |[N-ary Tree Postorder Traversal](src/main/kotlin/g0501_0600/s0590_n_ary_tree_postorder_traversal)| Easy | Depth_First_Search, Tree, Stack | 237 | 88.10 |
| 1638 | +| 0589 |[N-ary Tree Preorder Traversal](src/main/kotlin/g0501_0600/s0589_n_ary_tree_preorder_traversal)| Easy | Depth_First_Search, Tree, Stack, Programming_Skills_I_Day_5_Function, Level_1_Day_6_Tree | 233 | 84.02 |
1633 | 1639 | | 0587 |[Erect the Fence](src/main/kotlin/g0501_0600/s0587_erect_the_fence)| Hard | Array, Math, Geometry | 470 | 100.00 |
1634 | 1640 | | 0586 |[Customer Placing the Largest Number of Orders](src/main/kotlin/g0501_0600/s0586_customer_placing_the_largest_number_of_orders)| Easy | LeetCode_Curated_SQL_70, Database, SQL_I_Day_8_Function | 768 | 44.85 |
1635 | 1641 | | 0584 |[Find Customer Referee](src/main/kotlin/g0501_0600/s0584_find_customer_referee)| Easy | Database, SQL_I_Day_1_Select | 779 | 43.48 |
|
0 commit comments