Welcome to my LeetCode repository! Here, I share my solutions to various problems on LeetCode, categorized by difficulty and topic. This repository serves as a personal reference and a resource for others tackling similar challenges.
The solutions are organized as follows:
- Difficulty: Problems are grouped into
Easy
,Medium
, andHard
categories. - Topic: Solutions are further categorized by topics like Arrays, Strings, Trees, Graphs, Dynamic Programming, etc.
- Languages: Most solutions are implemented in Python, but other languages like C++ or Java may also be included.
Each solution includes:
- The problem description (brief summary).
- My approach and thought process.
- A detailed implementation.
- Comments for clarity and readability.
- Clone this repository:
git clone https://github.com/yourusername/leetcode-solutions.git
- Navigate to the folder of interest:
cd leetcode-solutions/Difficulty/Topic
- Open the corresponding solution file.
Feel free to fork this repository and contribute by:
- Adding solutions to new problems.
- Improving existing solutions.
- Providing alternative approaches to existing problems.
To contribute:
- Fork the repository.
- Create a new branch for your changes:
git checkout -b feature-branch-name
- Commit and push your changes.
- Submit a pull request.
Feedback is welcome! If you have suggestions or questions, please create an issue or reach out via email at your-email@example.com.
Happy coding!
0001-two-sum |
0013-roman-to-integer |
0009-palindrome-number |
0013-roman-to-integer |
0066-plus-one |
0013-roman-to-integer |
0014-longest-common-prefix |
0020-valid-parentheses |
0028-find-the-index-of-the-first-occurrence-in-a-string |
0058-length-of-last-word |
0001-two-sum |
0026-remove-duplicates-from-sorted-array |
0027-remove-element |
0035-search-insert-position |
0066-plus-one |
0014-longest-common-prefix |
0020-valid-parentheses |
0026-remove-duplicates-from-sorted-array |
0027-remove-element |
0028-find-the-index-of-the-first-occurrence-in-a-string |
0028-find-the-index-of-the-first-occurrence-in-a-string |
0035-search-insert-position |