</>CodeCards

// a personal leetcode journal

Remember the insight, not just the answer.

Save the one thing that made a LeetCode problem click. Your notes stay on your device, ready whenever you need to remember why the solution worked.

local-first·no account·no AI-written notes
minimum-window-substring.md
#76

Minimum Window Substring

hard
Sliding Window
// what unlocked it

Expand right until the window is valid, then shrink from left while it stays valid. Track how many required characters are still missing instead of recounting the map every step.

// complexityO(n) time · O(k) space
// notes / gotchas

Duplicates in t count. Record the answer before shrinking, not after.

hint
#1easy
Two Sum
Hashing
#124hard
Binary Tree Maximum Path Sum
Trees

Your notes, after the solve.

01Solve

Finish the problem on LeetCode.

02Write

Save what made it click, what tripped you up, and what you want to remember.

03Recall

Come back later. Try to reconstruct the approach before revealing your notes.

/*

You solved it.

Write down why.

CodeCards saves your insight, mistakes, and gotchas instead of generating another explanation for you. Your notes are worth keeping because you wrote them.

*/
personal_notesWrite your own insight and gotchas.
study_modeHide the answer until you're ready to reveal it.
focus_viewOne problem at a time, nothing else on screen.
local_firstStored locally in your browser. No account required.

Try to remember → reveal your notes.

#76

Minimum Window Substring

hard
recall the approach before revealingreveal ↓
#76

Minimum Window Substring

hard
Sliding Window
// what unlocked it

Expand right until the window is valid, then shrink from left while it stays valid. Track how many required characters are still missing instead of recounting the map every step.

// complexityO(n) time · O(k) space
// notes / gotchas

Duplicates in t count. Record the answer before shrinking, not after.

hint
← previous1 / 8next →

Solve it once. Remember why.

Start building your personal coding interview notebook.

open CodeCards