Skip to the guide

The LLD framework: six steps for every question

BeginnerConcept6 pages

An LLD question starts as one vague sentence, such as "design tic-tac-toe", and ends with classes that run. Six steps take you from that sentence to working code, and every LLD case study on this site follows them in order. Here you'll see what each step produces, why the order holds, and where the numbers went. The next six pages take one step each, and tic-tac-toe in 40 minutes runs all six with its code.

A novel for a publisher

A novelist agrees a brief with her publisher before she writes a word: how long the book is, who it's for, and what kind of ending it has. Then she writes the cast list, each character with what they want and what they would never do. If the cast is large, she plans a family tree for the front of the book. She sketches the plot outline, who meets whom and in what order. For each scene she fills in a card that says what the scene must hand on to the next one. Only then does she draft the main story from the first page to the last, plainly, before any side plot. When the editor asks for a new side plot, it slots in beside the main story, and a proofreader reads the whole book for slips. Meanwhile the publisher forecasts how many copies will sell, to plan the print run.