DSA Lab

Continuously animated, not a slideshow — scrub to any moment and see a real in-between frame, synced to running code.

12 interactive lessons5 families

Descend and cull

4 lessons

Binary search’s halving: the window shrinks by half every step, survivors respread.

  1. Binary Search

    ~10 min
  2. Search in Rotated Sorted Array

    ~10 min
  3. Find Minimum in Rotated Sorted Array

    ~9 min
  4. Find Peak Element

    ~8 min

Converging walk

2 lessons

Two ends walk toward each other, one retiring per check.

  1. Two Pointers

    ~9 min
  2. Container With Most Water

    ~8 min

Running scan

2 lessons

One guide sweeps forward, tracking a running best as it goes.

  1. Maximum Subarray (Kadane’s)

    ~9 min
  2. Best Time to Buy and Sell Stock

    ~8 min

In-place partition

3 lessons

A write and a read pointer, bars trading slots instead of a second array.

  1. Move Zeroes

    ~7 min
  2. Sort Colors

    ~9 min
  3. Remove Duplicates from Sorted Array

    ~7 min

Sliding window

1 lesson

Both ends only move forward — expand to grow, shrink while still valid.

  1. Minimum Size Subarray Sum

    ~9 min