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