My LeetCode solutions in Python:
- E = Easy, M = Medium, H = Hard (by LeetCode classification)
- [*] = worth reviewing
- [#] = requiring esoteric knowledge
- [t] = trivial, or trivial with insights
- 001 Two Sum E
- 015 3sum M [*]
- 026 Remove Duplicates From Sorted Array E [*]
- 027 Remove Element E
- 048 Rotate Image M [*]
- 053 Maximum Subarray E
- 054 Spiral Matrix M [*]
- 056 Merge Intervals M [*]
- 121 Best Time to Buy and Sell Stock E
- 122 Best Time to Buy and Sell Stock II E
- 442 Find All Duplicates in an Array M [*]
- 448 Find All Numbers Disappeared in an Array E [*]
- 485 Max Consecutive Ones E
- 495 Teemo Attacking M [t]
- 496 Next Greater Element I E [*]
- 561 Array Partition I E
- 566 Reshape the Matrix E [*]
- 674 Longest Continuous Increasing Subsequence E
- 717 1-bit and 2-bit Characters E
- 821 Shortest Distance to a Character E [*]
- 867 Transpose Matrix E [*]
- 832 Flipping an Image E
- 852 Peak Index in a Mountain Array E [*]
- 861 Score After Flipping Matrix M [*]
- 885 Spiral Matrix III M [*]
- 888 Fair Candy Swap E
- 896 Monotonic Array E
- 905 Sort Array By Parity E
- 136 Single Number E [*]
- 231 Power of Two E
- 260 Single Number III M [*]
- 338 Counting Bits M [*]
- 342 Power of Four E
- 389 Find the Difference E [*]
- 461 Hamming Distance E [*]
- 476 Number Complement E [*]
- 693 Binary Number with Alternating Bits E [*]
- 762 Prime Number of Set Bits in Binary Representation E [t]
- 868 Binary Gap E
- 898 Bitwise ORs of Subarrays M [*]
- 053 Maximum Subarray E
- 072 Edit Distance H [*]
- 121 Best Time to Buy and Sell Stock E
- 292 Nim Game E [t]
- 322 Coin Change M
- 338 Counting Bits M [*]
- 518 Coin Change 2 M [*]
- 877 Stone Game M [t]
- 898 Bitwise ORs of Subarrays M [*]
- 136 Single Number E [*]
- 026 Remove Duplicates From Sorted Array E [*]
- 082 Remove Duplicates from Sorted List II M [*]
- 083 Remove Duplicates from Sorted List E
- 389 Find the Difference E [*]
- 442 Find All Duplicates in an Array M [*]
- 448 Find All Numbers Disappeared in an Array E [*]
- 419 Battleships in a Board M
- 463 Island Perimeter E
- 657 Judge Route Circle E [t]
- 807 Max Increase to Keep City Skyline M
- 836 Rectangle Overlap E [*]
- 874 Walking Robot Simulation E
- 883 Projection Area of 3D Shapes E
- 892 Surface Area of 3D Shapes E [*]
- 056 Merge Intervals M [*]
- 797 All Paths from Source to Target M [*]
- 841 Keys and Rooms M [*]
- 122 Best Time to Buy and Sell Stock II E
- 435 Non-overlapping Intervals M [*]
- 455 Assign Cookies E
- 781 Rabbits in Forest M
- 860 Lemonade Change E
- 861 Score After Flipping Matrix M [*]
- 001 Two Sum E
- 242 Valid Anagram E
- 349 Intersection of Two Arrays E [t]
- 350 Intersection of Two Arrays II E
- 389 Find the Difference E [*]
- 500 Keyboard Row E
- 771 Jewels and Stones E
- 804 Unique Morse Code Words E
- 811 Subdomain Visit Count E
- 884 Uncommon Words from Two Sentences E
- 888 Fair Candy Swap E
- 890 Find and Replace Pattern M [*]
- 002 Add Two Numbers M
- 019 Remove Nth Node From End of List M [*]
- 021 Merge Two Sorted Lists E
- 082 Remove Duplicates from Sorted List II M [*]
- 083 Remove Duplicates from Sorted List E
- 237 Delete Node in a Linked List E [t]
- 876 Middle of the Linked List E [*]
- 007 Reverse Integer E
- 009 Palindrome Number E
- 067 Add Binary E
- 231 Power of Two E
- 258 Add Digits E [#]
- 326 Power of Three E
- 342 Power of Four E
- 415 Add Strings E
- 537 Complex Number Multiplication M [t]
- 575 Distribute Candies E
- 628 Maximum Product of Three Numbers E [t]
- 728 Self Dividing Numbers E [t]
- 868 Binary Gap E
- 888 Fair Candy Swap E
- 908 Smallest Range I E [t]
- 079 Word Search M
- 797 All Paths from Source to Target M [*]
- 852 Peak Index in a Mountain Array E [*]
- 009 Palindrome Number E
- 344 Reverse String E
- 412 Fizz Buzz E [t]
- 423 Reconstruct Original Digits from English M [*]
- 500 Keyboard Row E
- 520 Detect Capital E [*]
- 521 Longest Uncommon Subsequence I E [t]
- 541 Reverse String II E
- 557 Reverse Words in a String III E
- 709 To Lower Case E
- 771 Jewels and Stones E
- 784 Letter Case Permutation E
- 791 Custom Sort String M [*]
- 804 Unique Morse Code Words E
- 806 Number of Lines to Write String E
- 811 Subdomain Visit Count E
- 824 Goat Latin E
- 859 Buddy Strings E
- 890 Find and Replace Pattern M [*]
- 893 Groups of Special-Equivalent Strings E
- 094 Binary Tree Inorder Traversal M [*]
- 102 Binary Tree Level Order Traversal M
- 107 Binary Tree Level Order Traversal II E
- 104 Maximum Depth of Binary Tree E
- 144 Binary Tree Preorder Traversal M [*]
- 145 Binary Tree Postorder Traversal H [*]
- 199 Binary Tree Right Side View M
- 226 Invert Binary Tree E
- 257 Binary Tree Paths E
- 429 N-ary Tree Level Order Traversal E
- 513 Find Bottom Left Tree Value M
- 515 Find Largest Value in Each Tree Row M
- 559 Maximum Depth of N-ary Tree E
- 589 N-ary Tree Preorder Traversal E
- 590 N-ary Tree Postorder Traversal E
- 617 Merge Two Binary Trees E [*]
- 623 Add One Row to Tree M
- 637 Average of Levels in Binary Tree E
- 654 Maximum Binary Tree M
- 669 Trim a Binary Search Tree E [*]
- 700 Search in a Binary Search Tree E [*]
- 701 Insert into a Binary Search Tree M [*]
- 814 Binary Tree Pruning M
- 872 Leaf Similar Trees E
- 894 All Possible Full Binary Trees M [*]
- 897 Increasing Order Search Tree E
- 015 3sum M [*]
- 019 Remove Nth Node From End of List M [*]
- 026 Remove Duplicates From Sorted Array E [*]
- 027 Remove Element E
- 083 Remove Duplicates from Sorted List E
- 344 Reverse String E
- 349 Intersection of Two Arrays E [t]
- 350 Intersection of Two Arrays II E
- 876 Middle of the Linked List E [*]
- 905 Sort Array By Parity E