Here are my solutions for various LeetCode problems.
I use Python 3 for my solutions. Plus one in Clojure for fun even though you can't submit for testing.
| difficulty | problem |
|---|---|
| hard | 42. Trapping Rain Water |
| medium | 71. Simplify Path |
| medium | 80. Remove Duplicates from Sorted Array II |
| medium | 130. Surrounded Regions |
| medium | 150. Evaluate Reverse Polish Notation |
| medium | 189. Rotate Array |
| medium | 200. Number of Islands |
| medium | 433. Minimum Genetic Mutation |
| easy | 1. Two Sum |
| easy | 13. Roman to Integer |
| easy | 14. Longest Common Prefix |
| easy | 20. Valid Parentheses |
| easy | 26. Remove Duplicates from Sorted Array |
| easy | 27. Remove Element |
| easy | 28. Find the Index of the First Occurrence in a String |
| easy | 58. Length of Last Word |
| easy | 88. Merge Sorted Array |
| easy | 121. Best Time to Buy and Sell Stock |
| easy | 125. Valid Palindrome |
| easy | 169. Majority Element |
| easy | 202. Happy Number |
| easy | 205. Isomorphic Strings |
| easy | 219. Contains Duplicate II |
| easy | 228. Summary Ranges |
| easy | 242. Valid Anagram |
| easy | 290. Word Pattern |
| easy | 383. Ransom Note |
| easy | 392. Is Subsequence |
| easy | 605. Can Place Flowers |
| easy | 914. X of a Kind in a Deck of Cards |
| difficulty | problem |
|---|---|
| hard | 42. Trapping Rain Water |