Back to projects
AlgorithmsSource available

Case study

LeetCode Solutions

A growing collection of 100+ carefully explained algorithm solutions with problem statements, tests, and readable implementations.

LeetCode solutions project with algorithm source code

Project overview

Category
Algorithms

Technology

  • Python
  • JavaScript

Project links

Inside the project

Context

The repository is a long-term practice space for data structures, algorithms, and problem-solving patterns. It brings solutions that would normally be scattered across a coding platform into one consistent and searchable codebase.

Role

I solve, document, test, and maintain every entry. Most implementations use Python 3, with selected exercises written in JavaScript to practise the same ideas across languages.

Constraints

A correct submission is not automatically a useful learning resource. Each solution needs to balance runtime and memory efficiency with clear naming, concise explanation, and enough test coverage to revisit the problem later.

Approach

Every entry keeps the problem, implementation, tests, and commentary close together. I favour direct solutions with explicit complexity trade-offs and refactor earlier work when a clearer pattern emerges.

Outcome

The collection now contains more than 100 solutions and continues to grow. Beyond interview-style practice, it serves as a personal reference for common techniques such as two pointers, sliding windows, graph traversal, dynamic programming, and binary search.

Lessons

Consistency compounds. Solving many small problems, writing down the reasoning, and returning to older code has improved both pattern recognition and the ability to explain why an algorithm works—not only that it passes.

A growing collection of 100+ carefully explained algorithm solutions with problem statements, tests, and readable implementations.

Explore all projects