A repository of my exercise on LeetCode.
Index | Title | Solution | Difficulty | Tag |
---|---|---|---|---|
69 | Sqrt(x) | C++ | Easy | Binary Search / Math |
9 | Palindrome Number | C++ | Easy | Math |
21 | Merge Two Sorted Lists | C++ | Easy | Linked List |
24 | Swap Nodes in Pairs | C++ | Medium | Linked List |
61 | Rotate List | C++ | Medium | Linked List / Two Pointers |
Index | Title | Solution | Difficulty | Tag |
---|---|---|---|---|
1 | Two Sum | C++ | Easy | Array / Hash Table |
2 | Add Two Numbers | C++ | Medium | Linked List / Math |
3 | Longest Substring Without Repeating Characters | C++ | Medium | Hash Table/ Two Pointers /String |
4 | Median of Two Sorted Arrays | C++ | Hard | Binary Search / Array / Divide and Conquer |
7 | Reverse Integer | C++ | Easy | Math |
8 | String to Integer (atoi) | C++ | Medium | Math / String |
19 | Remove Nth Node From End of List | C++ | Medium | Linked List /Two Pointers |
31 | Next Permutation | C++ | Medium | Array |
27 | Remove Element | C++ | Easy | Array / Two Pointers |
34 | Search for a Range | C++ | Medium | Binary Search / Array |
35 | Search Insert Position | C++ | Easy | Binary Search / Array |
43 | Multiply Strings | C++ | Medium | Math / String |
50 | Pow(x, n) | C++ | Medium | Binary Search / Math |
456 | 132 Pattern | C++ | Medium | stack |
507 | Perfect Number | C++ | Easy | - |
26 | Remove Duplicates from Sorted Array | C++ | Easy | Array / Two Points |
80 | Remove Duplicates from Sorted Array II | C++ | Medium | Array / Two Points |
456 | 132 Pattern | C++ | Medium | Stack |
58 | Length of Last Word | C++ | Easy | String |
Louie Wang
Email: [email protected](or [email protected])
Blog:https://leyiwang.github.io/
Date: Last update 2017-04-01
Date: Update 2017-03-29