How neetcode-gh/leetcode works
This repository is a collection of NeetCode/LeetCode algorithm solutions, primarily organized as standalone implementations by language and problem. The user supplies a problem-specific input to a solution and receives its computed result; these files are not wired into a shared runtime or service. The README documents broad algorithm coverage and language availability. The graph groups representative solution families rather than every file; paths and links are representative, and unsampled implementations are not assumed to share internal dependencies.
Main entry points: 0001-two-sum.cpp Algorithm implementations · 0303-range-sum-query-immutable.c Array solutions · 0303-range-sum-query-immutable.rs Prefix range sums · 1466-reorder-routes-to-make-all-paths-lead-to-the-city-zero.cpp Graph algorithms
Components 17
Problem solutions
- Problem inputs
- Algorithm implementations
cpp/0001-two-sum.cpp - Graph algorithms
cpp/1466-reorder-routes-to-make-all-paths-lead-to-the-city-zero.cpp - Array solutions
c/0303-range-sum-query-immutable.c - String solutions
cpp/0003-longest-substring-without-repeating-characters.cpp - Tree solutions
cpp/0104-maximum-depth-of-binary-tree.cpp - Linked-list solutions
cpp/0002-add-two-numbers.cpp - Dynamic programming
cpp/0322-coin-change.cpp - Search and sorting
cpp/0704-binary-search.cpp - Computed result
Data structures
- Design problems
javascript/1845-seat-reservation-manager.js - Mutable range sums
typescript/0307-range-sum-query-mutable.ts - Prefix range sums
rust/0303-range-sum-query-immutable.rs
Language coverage
- C solutions
c - C++ solutions
cpp - Other languages
python
Other components
- Problem solver
Connections 27
- Problem solver → Problem inputs: provides
README.md - Problem inputs → Algorithm implementations: solved by
- Problem inputs → Graph algorithms: solved by
- Problem inputs → Array solutions: solved by
- Problem inputs → String solutions: solved by
- Problem inputs → Tree solutions: solved by
- Problem inputs → Linked-list solutions: solved by
- Problem inputs → Dynamic programming: solved by
- Problem inputs → Search and sorting: solved by
- Problem inputs → Design problems: solved by
- Problem inputs → Mutable range sums: solved by
- Problem inputs → Prefix range sums: solved by
- Algorithm implementations → Computed result: returns
- Graph algorithms → Computed result: returns
cpp/1466-reorder-routes-to-make-all-paths-lead-to-the-city-zero.cpp - Array solutions → Computed result: returns
c/0303-range-sum-query-immutable.c - String solutions → Computed result: returns
- Tree solutions → Computed result: returns
- Linked-list solutions → Computed result: returns
- Dynamic programming → Computed result: returns
- Search and sorting → Computed result: returns
- Design problems → Computed result: returns
javascript/1845-seat-reservation-manager.js - Mutable range sums → Computed result: returns
typescript/0307-range-sum-query-mutable.ts - Prefix range sums → Computed result: returns
rust/0303-range-sum-query-immutable.rs - Problem solver → Computed result: receives
- C solutions → Array solutions: includes
- C++ solutions → Algorithm implementations: includes
- Other languages → Prefix range sums: includes