Skip to the guide

What the LLD round is and what interviewers score

BeginnerConcept6 pages

The low-level design round (LLD) gives you one small, self-contained problem, such as "design a parking lot", and asks you to design the classes that make it work, often with some of the code. It is also called object-oriented design (OOD). This page covers what the round is and the five things the interviewer writes down while you work, because those notes decide the result.

A cabinet for the master carpenter

An apprentice carpenter is asked to build a small cabinet while the master watches. A good apprentice doesn't pick up the saw at once. She asks where the cabinet will stand and what it will hold, and only then does she measure. She decides on the parts, two sides, a top, three shelves and a drawer, and on what each part has to carry. She cuts clean joints and leaves no nails sticking out. And she says what she is doing as she goes, so the master never has to guess why.

At the end, the master asks for one more shelf. In a well-made cabinet, the new shelf rests on pegs that are already there. In a careless one, the back has to come off first.

You are the apprentice, and the cabinet is your design and its code. The master is your interviewer, and her notes are the scoresheet. Asking and measuring is problem analysis, the requirements you agree before you design. Choosing the parts and what each one carries is class design: which classes exist, and which data and rules each one owns. Clean joints are code quality, meaning clear names, private data and errors that say what went wrong. The extra shelf is extensibility, a new requirement your design takes without being pulled apart. Saying what you're doing is communication.