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 | |----|------------------------------------|----------| | 202 | Happy Number | Python | | 1480 | Running Sum of 1d Array | Python | | 344 | Reverse String | Python | | 20 | Valid Parentheses | Python | | 242 | Valid Anagram | Python | | 392 | Is Subsequence | Python | | 13 | Roman to Integer | Python | | 1491 | Average Salary Excluding the Minimum and Maximum Salary | Python | | 1768 | Merge Strings Alternately | Python | | 14 | Longest Common Prefix | Python | | 643 | Maximum Average Subarray I | Python | | 2239 | Find Closest Number to Zero | Python | | 1342 | Number of Steps to Reduce a Number to Zero | Python | | 169 | Majority Element | Python | | 908 | Smallest Range I | Python | | 231 | Power of Two | Python |
| ID | Title | Solution | |----|------------------------------------|----------| | 347 | Top K Frequent Elements | Python | | 633 | Sum of Square Numbers | Python |