Author: Yihao Wang
This repository contains my record of Leetcode training.
I also take part in weekly contests occasionaly, the problems from contests are mainly implemented in JavaScript. These solutions, however, have not been included here, for I do not have enough time to document them and optimize the code.
Here is a reference table for all the problems (except for those in contest) I have solved up to now. The plan is to include an analysis to each problem and some comments on the implementation in its markdown. However, these parts may be missing in some recently solved problems. They take time to complete.
No. | Title | Diffuculty | Language | First Solved |
---|---|---|---|---|
1 | Two Sum | easy | c | 16/17/2019 |
2 | Add Two Numbers | medium | c | 2/12/2019 |
3 | Longest Substring Without Repeating Characters | medium | c | 2/12/2019 |
4 | Median of Two Sorted Arrays | hard | c | 2/12/2019 |
5 | Longest Palindromic Substring | medium | c | 2/12/2019 |
6 | ZigZag Conversion | medium | c | 2/12/2019 |
7 | Reverse Integer | easy | c | 16/11/2019 |
8 | String to Integer(atoi) | medium | c | 3/12/2019 |
9 | Palindrome Number | easy | c | 16/11/2019 |
10 | Regular Expression Matching | hard | c | 3/12/2019 |
11 | Container With Most Water | medium | c | 3/12/2019 |
12 | Integer to Roman | medium | c | 3/12/2019 |
13 | Roman to Integer | easy | c | 17/11/2019 |
14 | Longest Common Prefix | easy | c | 18/11/2019 |
15 | 3Sum | medium | js | 6/12/2019 |
16 | 3Sum Closest | medium | c | 8/12/2019 |
17 | Letter Combinations of a Phone Number | medium | c | 7/12/2019 |
18 | 4Sum | medium | js | 8/12/2019 |
19 | Remove Nth Node From End of List | medium | c | 7/12/2019 |
20 | Valid Parentheses | easy | c | 18/11/2019 |
21 | Merge Two Sorted Lists | easy | c | 18/11/2019 |
22 | Generate Parentheses | medium | c | 9/12/2019 |
23 | Merge Two Sorted Lists | hard | c | 9/12/2019 |
24 | Swap Nodes in Pairs | medium | c | 9/12/2019 |
25 | Reverse Nodes in k Group | hard | c | 9/12/2019 |
26 | Remove Duplicates from Sorted Array | easy | c | 18/11/2019 |
27 | Remove Element | easy | c | 18/11/2019 |
28 | Implement strStr() | easy | c | 18/11/2019 |
35 | Search Insert Position | easy | c | 18/11/2019 |
38 | Count and Say | easy | c | 18/11/2019 |
53 | Maximum Subarray | easy | c | 18/11/2019 |
58 | Length of Last Word | easy | c | 18/11/2019 |
66 | Plus One | easy | c | 18/11/2019 |
67 | Add Binary | easy | c | 19/11/2019 |
69 | Sqrt(x) | easy | c | 19/11/2019 |
70 | Climbing Stairs | easy | c | 19/11/2019 |
83 | Remove Duplicates from Sorted List | easy | c | 19/11/2019 |
88 | Marge Sorted Array | easy | c | 19/11/2019 |
100 | Same Tree | easy | c | 20/11/2019 |