AlgoViz

What an LLD interview tests

easy 40 min

A low-level design round gives you one vague sentence and about 45 minutes.

Watch lesson5:00

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

Ask which chair, then build one that holds and can grow armrests.

A box (container) holds things (items). A person stands at the box (manager) with a rulebook (policy), and the things move along a belt from state to state (lifecycle).

Cheat sheet

Container
what holds? capacity
Item
what is held? identity
Manager
who takes the request?
Policy
what varies? value or Strategy
Lifecycle
which states? enum or State
Signals
scope, owners, correct, change, talk
Default scope
one process, in memory
Fail first
the step that can refuse runs first

Spot it when you see

  • Design a ... with classes
  • One process, in memory
  • Now add ...
  • What if two people ...

Tricks that stick

  • C.I.M.P.L. sounds like simple.
  • SOCCT: scope, owners, correctness, change, talk.
  • After every decision, say because.

Do not forget

  • Building before asking
  • A manager that owns everything
  • Patterns without a force
  • Load balancers in a class diagram
  • Saying it should work