DSA
Learn data structures and algorithms through reasoning, examples, and practice.
Explore DSA
Practical learning guides with original examples and clear next steps.

Build a DSA Practice Log That Records Reasoning Instead of Streaks
A long practice streak does not necessarily show that you can solve a new problem. A reasoning log helps identify what you understand, where…

Find Duplicate Values with a Clear Time-and-Space Trade-off
Duplicate detection looks simple until requirements change. Are you checking whether any duplicate exists, returning every duplicate value, or reporting the positions of repeated…

Use a Stack to Explain Balanced Brackets Step by Step
A balanced-brackets checker is a compact way to understand a stack. The most recently opened bracket must close first. That last-in, first-out requirement is…

Understand Binary Search by Keeping One Invariant
Binary search works by repeatedly narrowing a sorted search range. Memorising a code template is less helpful than understanding the rule that remains true…

Choose Between a List, Set, and Map by the Operation You Need
Choosing a data structure is easier when you describe the operation first. “I need to store names” is incomplete. Do you need to preserve…