Skip to content

Aniketsy/Leetcode_Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions 🚀

A comprehensive collection of LeetCode problem solutions implemented in Python, organized by topics and difficulty levels.

📁 Repository Structure

This repository contains solutions to various LeetCode problems covering multiple data structures and algorithms topics:

🌐 Graph Problems

  • Graph Day 1 - Connected Components (DFS, BFS, Union-Find)
  • Graph Day 2 - BFS Solutions (Same Tree, Invert Tree, Symmetric Tree)
  • Graph Day 3 - DFS Solutions (Same Tree, Invert Tree, Symmetric Tree)
  • Graph Day 4 - Number of Provinces (DFS & BFS)

🔗 Linked List Problems

🏃‍♂️ Dynamic Programming

🔢 Array Problems

🧮 Mathematical Problems

🎯 Greedy Algorithms

🎲 Game Theory & Simulation

🔍 Search & Optimization

🌳 Tree Problems

📊 Advanced Problems

🏷️ Problem Categories

By Difficulty

  • Easy: Two Sum, Climbing Stairs, Fibonacci, Merge Sorted Array, etc.
  • Medium: Maximum Subarray, Set Matrix Zeroes, Graph problems, etc.
  • Hard: Advanced DP and Graph problems

By Algorithm Type

  • Dynamic Programming: Climbing Stairs, Fibonacci, Partition Sum, etc.
  • Graph Algorithms: DFS, BFS, Union-Find, Connected Components
  • Array Manipulation: Two Sum, Maximum Subarray, Set Matrix Zeroes
  • Greedy Algorithms: Candy Distribution, Processing Time
  • Mathematical: GCD, Modular Arithmetic, Combinatorics

🚀 Key Features

  • Multiple Approaches: Many problems include multiple solution approaches (Brute Force, Optimized, Different Algorithms)
  • Detailed Comments: Each solution includes problem description and explanation
  • Time/Space Complexity: Analysis provided for optimal solutions
  • Clean Code: Well-structured and readable Python implementations

📈 Progress Tracking

This repository contains solutions to 25+ LeetCode problems covering:

  • Graph Theory and Traversals
  • Dynamic Programming Patterns
  • Array and String Manipulation
  • Mathematical Algorithms
  • Tree and Binary Tree Problems
  • Greedy Algorithms
  • Game Theory and Simulation

🛠️ How to Use

  1. Clone the repository
  2. Navigate to specific problem files
  3. Each file contains:
    • Problem statement
    • Example test cases
    • Solution implementation(s)
    • Time and space complexity analysis

📚 Study Guide

For Beginners

Start with: Two Sum → Climbing Stairs → Maximum Subarray → Merge Two Sorted Lists

For Graph Problems

Follow the Graph Day series (1-4) for comprehensive coverage of graph algorithms

For Dynamic Programming

Begin with: Fibonacci → Climbing Stairs → Partition Equal Subset Sum

🤝 Contributing

Feel free to contribute by:

  • Adding new solutions
  • Improving existing solutions
  • Adding alternative approaches
  • Enhancing documentation

📄 License

This project is open source and available under the MIT License.


Happy Coding! 🎯

Keep practicing and improving your problem-solving skills!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages