Leetcode Problem Solutions
# | Title | Solution | Difficulty | Note |
---|---|---|---|---|
1 | Two Sum | C++ | Easy | |
2 | Add Two Numbers | C++ | Medium | |
3 | Reverse integers | C++ | Medium | |
4 | Median of two sorted array | C++ | Hard | |
5 | String to Integer | C++ | Medium | |
6 | Merge k sorted list | C++ | Hard | |
7 | Minimum height trees | C++ | Medium | only for fun, not efficient solution TODO: optimalization |
# | Title | Solution | Difficulty | Note |
---|---|---|---|---|
3 | Longest substring without repeating characters | Python | Medium | |
5 | Longest Palindromic Substring | Python | Medium |
6 | Zigzag Conversion | Java | Medium |||
# | Title | Solution | Difficulty | Note |
---|---|---|---|---|
9 | Palindrome Number | C# | Easy |
# | Title | Solution | Difficulty | Note |
---|---|---|---|---|
21 | Merge Two Sorted Lists | Golang | Easy | |
12 | Integer to Roman | Golang | Medium | |
16 | 3Sum Closest | Golang | Medium | |
17 | Letter Combinations of a Phone Number | Golang | Medium | |
18 | 4Sum | Golang | Medium | |
19 | Remove Nth Node From End of List | Golang | Medium | |
28 | Find the Index of the First Occurrence in a String | Golang | Easy | |
29 | Divide Two Integers | Golang | Medium | |
24 | Swap Nodes in Pairs | Golang | Medium |