Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

A curated collection of my LeetCode solutions in Python, organized by topic and difficulty. This repository documents my journey of mastering Data Structures & Algorithms (DSA) and preparing for technical interviews.


About

This repository contains clean and optimized Python solutions to LeetCode problems. Each solution is written with readability and efficiency in mind and, where applicable, includes:

  • Problem description
  • Approach and intuition
  • Time complexity
  • Space complexity
  • Well-structured Python implementation

The primary goal of this repository is to improve problem-solving skills, strengthen algorithmic thinking, and serve as a reference for common interview patterns.


Repository Structure

LeetCode-Solutions/
│
├── Arrays/
├── Strings/
├── Hashing/
├── Two Pointers/
├── Sliding Window/
├── Stack/
├── Binary Search/
├── Linked List/
├── Trees/
├── Graphs/
├── Heap/
├── Backtracking/
├── Dynamic Programming/
├── Greedy/
└── README.md

Topics Covered

  • Arrays
  • Strings
  • Hash Maps
  • Two Pointers
  • Sliding Window
  • Stack
  • Queue
  • Binary Search
  • Linked Lists
  • Trees
  • Binary Search Trees
  • Graphs
  • Breadth-First Search (BFS)
  • Depth-First Search (DFS)
  • Heap / Priority Queue
  • Backtracking
  • Dynamic Programming
  • Greedy Algorithms
  • Bit Manipulation
  • Trie
  • Union Find

Solution Format

Each problem directory contains:

  • solution.py – Python solution
  • README.md (optional) – Explanation of the approach, intuition, and complexity analysis

Example:

# Time Complexity: O(n)
# Space Complexity: O(1)

class Solution:
    def twoSum(self, nums, target):
        ...

Progress

Topic Status
Arrays & Hashing In Progress
Two Pointers In Progress
Sliding Window In Progress
Stack In Progress
Binary Search In Progress
Linked List In Progress
Trees In Progress
Graphs In Progress
Dynamic Programming In Progress

This repository is continuously updated as I solve new problems and refine existing solutions.


Goals

  • Solve 100+ LeetCode problems
  • Master fundamental data structures and algorithms
  • Recognize common interview patterns
  • Write clean, efficient, and maintainable Python code
  • Build a comprehensive reference for technical interview preparation

Disclaimer

These solutions are intended for educational purposes and personal learning. Whenever possible, attempt each problem independently before reviewing a solution.

About

A curated collection of LeetCode solutions in Python with clean code, optimized approaches, algorithm explanations, and time & space complexity analysis.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages