Welcome to my repository of LeetCode solutions! This collection includes my answers to various LeetCode problems, organized by difficulty. Each solution is written in Python. Hit the STAR to support this repo, thank you!
The repository is organized into three main folders based on difficulty:
LeetCode/
├── easy/
├── medium/
|── hard/
|── src/
└-- README.md
ID | Title | Solution |
---|---|---|
908 | Smallest Range I | Python |
13 | Roman to Integer | Python |
169 | Majority Element | Python |
1491 | Average Salary Excluding the Minimum and Maximum Salary | Python |
392 | Is Subsequence | Python |
2239 | Find Closest Number to Zero | Python |
202 | Happy Number | Python |
1342 | Number of Steps to Reduce a Number to Zero | Python |
344 | Reverse String | Python |
231 | Power of Two | Python |
643 | Maximum Average Subarray I | Python |
14 | Longest Common Prefix | Python |
20 | Valid Parentheses | Python |
242 | Valid Anagram | Python |
1480 | Running Sum of 1d Array | Python |
1768 | Merge Strings Alternately | Python |
ID | Title | Solution |
---|---|---|
633 | Sum of Square Numbers | Python |
347 | Top K Frequent Elements | Python |