Home - aditya-2k23/leetcode GitHub Wiki

Welcome to the LeetCode Notes Wiki!

GitHub License Languages Wiki Discussions

Leetcode

This repository contains my solutions to LeetCode problems, organized to help learners and developers understand problem-solving techniques, algorithms, and data structures. Each solution includes code in one or more programming languages and a detailed explanation of the approach, making it easy to follow and learn.

Purpose

The goal of this repo is to:

  • Provide clean, well-documented solutions to LeetCode problems.
  • Explain the thought process, algorithms, and optimizations behind each solution.
  • Serve as a personal reference and a resource for others preparing for coding interviews.

Repository Structure

The repo is organized as follows:

  • Folders: Each LeetCode problem has its own folder, named by problem number and title (e.g., P-1-two-sum).

  • Files in Each Folder:

    • Solution Files: Code solutions in languages like Python, Java, or C++ (e.g., solution.py, solution.java).
    • Explanation File: A Markdown file (e.g., README.md) detailing the problem, approach, time/space complexity, and any optimizations.
  • Main README: The root README.md provides an overview and links to key resources or problem categories.

Supported Languages

Solutions are primarily written in:

  • Python
  • Java
  • C++

Some problems may include solutions in additional languages or alternative approaches to highlight different techniques.

How to Use This Repo

  1. Browse by Problem: Navigate to a problem’s folder to find its solution and explanation. See the Problem Index wiki page to browse all problems with their difficulty levels.
  2. Learn Patterns: Check the wiki for guides on common algorithmic patterns (e.g., two-pointer, dynamic programming) as they’re added.
  3. Contribute or Suggest: Feel free to open an issue or pull request if you spot errors or have alternative solutions!
  4. Use Templates: Use the provided templates in the templates folder to maintain consistency in documenting new problems.

Getting Started

  • Start with the main README.md for a quick overview.
  • Explore problem folders directly or use future wiki pages for curated lists by topic or difficulty.
  • Refer to explanation files in each folder for detailed insights into each solution.

Happy Coding! 🚀 and I hope this repo helps you master LeetCode problems!

"Keep practicing, keep learning, and remember - every expert was once a beginner!"

Last Updated: May 31, 2025