Welcome to my LeetCode Solutions Repository!
This repository contains my solutions to various LeetCode problems, all implemented in Python.
The goal of this project is to improve problem-solving skills, master data structures & algorithms, and maintain a well-structured reference for future use.
Each folder represents a data structure or topic category.
Inside each folder, youβll find Python files named according to the problem they solve.
LeetCode-Solutions/
β
βββ Arrays/
β βββ two_sum.py
β βββ max_subarray.py
β βββ ...
β
βββ LinkedList/
β βββ reverse_linked_list.py
β βββ merge_two_sorted_lists.py
β
βββ Strings/
β βββ valid_anagram.py
β βββ longest_palindromic_substring.py
β βββ ...
β
βββ Stack/
β βββ valid_parentheses.py
β βββ min_stack.py
β
βββ Tree/
β βββ binary_tree_inorder_traversal.py
β βββ maximum_depth_of_binary_tree.py
β
βββ README.md
- Clone the repository
git clone 'https://github.com/Gauravgit97/LeetCode.git' - Navigate to the project folder
cd LeetCode - Open any folder (e.g., Arrays) and run a Python file
python arrays/twoSum.py
- Arrays
- Strings
- Linked Lists
- Stacks & Queues
- Trees
- Graphs
- Dynamic Programming
- Recursion
- Sorting & Searching
Each problem solution includes:
- Problem statement (brief summary)
- Approach explanation (logic used)
- Python implementation
- Time & Space Complexity analysis
- Maintain consistency in solving problems daily
- Improve algorithmic thinking and Python coding skills
- Build a personal DSA reference repository
If youβd like to contribute or suggest improvements, feel free to:
- Fork this repo
- Create a new branch (
feature/your-feature) - Commit your changes
- Submit a Pull Request π
β If you found this helpful, donβt forget to star the repository!