About SolveLog

Code is the answer. Understanding is the goal.

SolveLog is a personal learning archive that turns solved LeetCode and DSA problems into short lessons you can reason through—not snippets you have to memorize.

Why it exists

A solution should leave you better prepared for the next problem.

It is easy to recognize code after seeing it. It is harder to recover the key idea from a blank editor. SolveLog focuses on that missing step: the observation that turns a brute-force approach into the right data structure or algorithm.

Each page follows the same learning path—problem, intuition, approach, working code, edge cases, complexity, and a live walkthrough of the algorithm's changing state.

394solutions explained
18problem patterns
3core views: idea, code, trace
1goal: transferable intuition

How every page is built

01

Explain the observation

Start with the repeated work or constraint that reveals the useful pattern.

02

Trace real state

Run the algorithm on concrete examples so every pointer, window, stack, or table update is visible.

03

Check the edges

Document failure modes, boundary cases, and the true time and space costs.

The standard

Clear, testable, and useful.

Pick a problem and follow the state.

The archive is organized by difficulty, pattern, and topic.

Start exploring