Skip to content

Gauravgit97/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 LeetCode Solutions in Python

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.


πŸ“‚ Repository Structure

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

βš™οΈ How to Use

  1. Clone the repository
    git clone 'https://github.com/Gauravgit97/LeetCode.git'
  2. Navigate to the project folder
    cd LeetCode
  3. Open any folder (e.g., Arrays) and run a Python file
    python arrays/twoSum.py

🧩 Topics Covered

  • Arrays
  • Strings
  • Linked Lists
  • Stacks & Queues
  • Trees
  • Graphs
  • Dynamic Programming
  • Recursion
  • Sorting & Searching

πŸ’‘ Approach

Each problem solution includes:

  • Problem statement (brief summary)
  • Approach explanation (logic used)
  • Python implementation
  • Time & Space Complexity analysis

πŸš€ Goals

  • Maintain consistency in solving problems daily
  • Improve algorithmic thinking and Python coding skills
  • Build a personal DSA reference repository

🀝 Contributing

If you’d like to contribute or suggest improvements, feel free to:

  1. Fork this repo
  2. Create a new branch (feature/your-feature)
  3. Commit your changes
  4. Submit a Pull Request πŸš€

⭐ If you found this helpful, don’t forget to star the repository!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages