Skip to content

Collection of LeetCode solutions and algorithmic patterns implemented in C and Rust.

License

Notifications You must be signed in to change notification settings

eddndev/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

A curated collection of algorithmic problems, data structures, and competitive programming challenges.

Index


About

This repository serves as a personal knowledge base for algorithmic problem solving. It maps the journey through LeetCode's extensive library, focusing on clean, efficient, and well-documented code.

The goal is not merely to solve, but to understand the underlying patterns—Graph Theory, Dynamic Programming, Greedy approaches, and more. Each solution is treated as a standalone study note.

Repository Structure

To maintain organization and scalability across thousands of problems, the repository is structured by numerical ranges rather than arbitrary topic folders. This ensures a strictly ordered filesystem while allowing for topic-based tagging via internal file documentation.

Organization Scheme

  • Source Code: Grouped in ranges of 100 (e.g., 0001-0100).
  • Naming Convention: ID-slug.ext (e.g., 0001-two-sum.cpp).
  • Documentation: Self-contained within solution files or adjacent Markdown notes.
/
├── solutions/
│   ├── 0001-0100/
│   │   ├── 0001-two-sum.cpp
│   │   └── ...
│   ├── 0101-0200/
│   └── ...
├── scripts/
│   └── automation-tools
└── README.md

Solutions

An automated index of all solved problems will be generated here.

ID Title Difficulty Time Space Languages
0001 Two Sum - EN
Two Sum - ES
Easy O(n) O(n) C, Rust
0006 Zig Zag Conversion - EN
Zig Zag Conversion - ES
Medium O(n) O(1) C
0008 String To Integer - EN
String To Integer - ES
Medium O(n) O(1) C
3454 Separate Squares Ii - EN
Separate Squares Ii - ES
Hard O(N log N) O(N) C

Languages & Tools

Primary languages used for implementation:

  • C: For raw performance and low-level control, honoring the roots of systems programming.
  • Rust: For modern safety, concurrency, and expressive correctness. The primary vehicle for reliable solutions.

License

This repository is dual-licensed to accommodate its different components:

  • Automation Scripts (/scripts): Licensed under the GNU General Public License v3.0 (GPLv3). This ensures that the tooling remains free and open source.
  • Solutions & Documentation (/solutions): Provided as public domain / educational content. You are free to use, modify, and learn from them without restriction, though attributing the source is appreciated.

See the LICENSE file for the full GPLv3 text applicable to the codebase infrastructure.

About

Collection of LeetCode solutions and algorithmic patterns implemented in C and Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published