Skip to the guide

Red flags: what gets candidates rejected in LLD

BeginnerConcept5 pages

The habits that sink a design round in general, such as silence, bluffing and caving at every pushback, sink this one too, and Red flags in the HLD round covers them. This page is about the red flags that belong to classes and code: how a design is split, where its rules live, and what the code does when the first new requirement arrives.

Buying a second-hand car

A buyer looking at a used car expects a few scratches. Every used car has some, and an honest seller points them out before she finds them. What makes her walk away is different. A bent frame under shiny paint means the car will never drive straight again. A seller who won't open the engine for her to look makes her wonder what he's hiding. A family car fitted with a racing spoiler and extra lights tells her the owner cared more about looks than about the engine. And on the test drive, the car has to start and steer.

The buyer is your interviewer, and the car is your design and your code. Scratches are the small flaws that every 45-minute design has, which you name and fix. A bent frame is a structure that can't take a change, such as one class that owns everything, so every new requirement has to bend it. A seller who won't open the engine is a candidate who can't explain a choice, or who hides what isn't finished. The racing spoiler is a design pattern with no problem to solve. The test drive is running one case through the core flow, or the demo in a machine-coding round.