Skip to content

This repository contains my solutions to LeetCode problems. Each solution is implemented in C, C++, Java, or Python and is accompanied by a README that explains the underlying approach and reasoning.

Notifications You must be signed in to change notification settings

skyforge-glitch/LeetcodeSolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 LeetCode Solutions in C++

This folder contains my structured and clean C++ solutions to various LeetCode problems, organized by problem number and title.
The goal of this repository is to maintain a clean, searchable, and well-organized archive of my problem-solving journey.


📁 Folder Structure

Each folder corresponds to a specific LeetCode problem using the pattern:

[ProblemNumber]_[ProblemTitle]

Inside each folder, you will typically find:

  • solution.cpp → My C++ implementation
  • README.md → (optional) explanation of the approach
  • Additional notes if needed

🧠 Why This Repository?

  • 📌 Track my daily LeetCode practice
  • 📈 Improve problem-solving and algorithmic thinking
  • 🧮 Build a library of reusable ideas and templates
  • 🗂️ Keep solutions neatly categorized and easy to revisit
  • 🔥 Prepare efficiently for interviews & contests

💡 What’s Included?

This repository includes solutions for problems across:

  • Arrays / Strings
  • Hashmaps & Sets
  • Prefix Sum
  • Sliding Window
  • Sorting & Greedy
  • Binary Search
  • Stack / Queue
  • Dynamic Programming
  • Bit Manipulation
  • Math & Number Theory
  • Custom Data Structure Problems
  • Hard & Premium Problems (authorized solutions)

Each problem is solved in clean C++, usually with:

  • A clear approach
  • Optimal time complexity
  • Minimal memory use
  • Professional formatting

🛠️ Tools & Languages

  • Language: C++17 / C++20
  • Editor: VS Code
  • Build: g++ / clang
  • Style: Competitive-Programming-friendly templates

⭐ Future Goals

  • Add explanations for all solved problems
  • Add testcases where useful
  • Add Python versions for some problems
  • Increase problem coverage to 300+

🤝 Contributions

This repo is primarily for my own learning, but feel free to:

  • Create issues
  • Suggest optimizations
  • Share alternative approaches

🚀 Happy Coding & Keep Solving!


About

This repository contains my solutions to LeetCode problems. Each solution is implemented in C, C++, Java, or Python and is accompanied by a README that explains the underlying approach and reasoning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published