Leetcode
Most of problems have different solutions and the solutions beat over 80% .
Language:Python3
- Array
Number | Problem | Solution | Difficulty |
---|---|---|---|
1 | Two Sum | Python3 | Easy |
26 | Remove Duplicates from Sorted Array | Python3 | Easy |
27 | Remove Element | Python3 | Easy |
35 | Search Insert Position | Python3 | Easy |
53 | Maximum Subarray | Python3 | Easy |
485 | Max Consecutive Ones | Python3 | Easy |
509 | Fibonacci Number | Python3 | Easy |
561 | Array Partition I | Python3 | Easy |
566 | Reshape the Matrix | Python3 | Easy |
766 | Toeplitz Matrix | Python3 | Easy |
832 | Flipping an Image | Python3 | Easy |
867 | Transpose Matrix | Python3 | Easy |
888 | Fair Candy Swap | Python3 | Easy |
896 | Monotonic Array | Python3 | Easy |
905 | Sort Array By Parity | Python3 | Easy |
922 | Sort Array By Parity II | Python3 | Easy |
977 | Squares of a Sorted Array | Python3 | Easy |
985 | Sum of Even Numbers After Queries | Python3 | Easy |
1002 | Find Common Characters | Python3 | Easy |
- Linked_List
Number | Problem | Solution | Difficulty |
---|---|---|---|
2 | Add Two Numbers | Python3 | Medium |
19 | Remove Nth Node From End of List | Python3 | Medium |
21 | Merge Two Sorted Lists | Python3 | Medium |
24 | Swap Nodes in Pairs | Python3 | Medium |
206 | Reverse Linked List | Python3 | Easy |
- Math
Number | Problem | Solution | Difficulty |
---|---|---|---|
7 | Reverse Integer | Python3 | Easy |
9 | Palindrome Number | Python3 | Easy |
69 | Sqrt(x) | Python3 | Easy |
168 | Excel Sheet Column Title | Python3 | Easy |
171 | Excel Sheet Column Number | Python3 | Easy |
172 | Factorial Trailing Zeroes | Python3 | Easy |
202 | Happy Number | Python3 | Easy |
204 | Count Primes | Python3 | Easy |
231 | Power of Two | Python3 | Easy |
258 | Add Digits | Python3 | Easy |
263 | Ugly Number | Python3 | Easy |
268 | Missing Number | Python3 | Easy |
326 | Power of Three | Python3 | Easy |
367 | Valid Perfect Square | Python3 | Easy |
400 | Nth Digit | Python3 | Easy |
- String
Number | Problem | Solution | Difficulty |
---|---|---|---|
13 | Roman to Integer | Python3 | Easy |
14 | Longest Common Prefix | Python3 | Easy |
20 | Valid Parentheses | Python3 | Easy |
28 | Implement strStr() | Python3 | Easy |
38 | Count and Say | Python3 | Easy |
58 | Length of Last Word | Python3 | Easy |
67 | Add Binary | Python3 | Easy |
125 | Valid Palindrome | Python3 | Easy |
344 | Reverse String | Python3 | Easy |
- Tree