LAB by Gautam Thapar
Frontend Engineering Lab

Build it,
then watch
it run.

A playground for the things that are easier to understand when you can step through them — algorithms, React internals, and interactive visualizations.

Explore algorithms →See experiments
1234
Latest algorithmsall 34
Dynamic ProgrammingMedium
Longest Increasing Subsequence

Longest strictly increasing subsequence — dp[i] = best run ending at i.

open →
Dynamic ProgrammingMedium
Word Break

Can a string be split into dictionary words? Reachability DP over prefixes.

open →
Dynamic ProgrammingMedium
Coin Change

Fewest coins to make an amount — bottom-up DP, not greedy.

open →
Experiments
SVG · State
Graph Visualizer

Interactive SVG graph — click a node to light up its neighbors.

open →
React internals
React Rendering

See exactly when React re-renders — memo, useMemo, useCallback.

open →
From scratch
Tiny React

A miniature React-like renderer built from first principles.

open →