AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started

CS notes · LLD

Low-Level Design

UML class diagrams, SOLID and design patterns applied, and the classic machine-coding rounds — parking lot, elevator, LRU cache, BookMyShow, Splitwise — animated, with code.

9 notes · about 62 minutes of reading · free, no sign-in needed

Read in this order

basics first

  1. 01Introduction to Low-Level DesignWhat a low-level design or machine-coding round asks, how LLD differs from HLD, a seven-step approach from requirements to code, and what gets graded.Beginner · 5 minBeginner · 5 min
  2. 02UML Class Diagrams for LLD InterviewsUML class diagrams for low-level design interviews: class box notation, visibility, the six relationships, multiplicity and a library example built up.Beginner · 5 minBeginner · 5 min
  3. 03Design Patterns in LLDThe six design patterns LLD rounds use most, each tied to a real use: Strategy pricing, Observer displays, State machines, Factory, Singleton, Decorator.Intermediate · 6 minIntermediate · 6 min
  4. 04Design an LRU CacheDesign an LRU cache with O(1) get and put: hash map plus doubly linked list, the class diagram, eviction animated, thread safety, TTL and full code.Intermediate · 7 minIntermediate · 7 min
  5. 05Design a Parking LotParking lot LLD for machine-coding interviews: requirements, a class diagram, Strategy for spot allocation and pricing, Factory, and runnable code.Intermediate · 7 minIntermediate · 7 min
  6. 06Design a Vending MachineVending machine low-level design: the State pattern over Idle, HasMoney, Dispensing and OutOfStock, greedy change-making, a class diagram and runnable code.Intermediate · 7 minIntermediate · 7 min
  7. 07Design an Elevator SystemElevator system low-level design: a dispatcher for several cars, direction as state, SCAN and LOOK scheduling as a Strategy, animated, with runnable code.Intermediate · 8 minIntermediate · 8 min
  8. 08Design a Movie Ticket Booking System (BookMyShow)Low-level design of a movie ticket booking system like BookMyShow: classes, seat holds with a timeout, the double-booking race and patterns, with code.Intermediate · 9 minIntermediate · 9 min
  9. 09Design an Expense Sharing App (Splitwise)Low-level design of an expense sharing app like Splitwise: classes, equal, exact and percent splits as a Strategy, net balances and simplifying debts.Intermediate · 8 minIntermediate · 8 min
Start with Introduction to Low-Level Design

Low-Level Design (LLD) Interview Notes, Animated

Low-level design notes for interviews: UML class diagrams, design patterns applied, and parking lot, elevator, LRU cache and BookMyShow, animated with code.

  • Notes: 9
  • Reading time: about 62 minutes
  • Cost: Free, no sign-in needed

UML class diagrams, SOLID and design patterns applied, and the classic machine-coding rounds — parking lot, elevator, LRU cache, BookMyShow, Splitwise — animated, with code.

Read in this order

  1. Introduction to Low-Level Design — What a low-level design or machine-coding round asks, how LLD differs from HLD, a seven-step approach from requirements to code, and what gets graded.
  2. UML Class Diagrams for LLD Interviews — UML class diagrams for low-level design interviews: class box notation, visibility, the six relationships, multiplicity and a library example built up.
  3. Design Patterns in LLD — The six design patterns LLD rounds use most, each tied to a real use: Strategy pricing, Observer displays, State machines, Factory, Singleton, Decorator.
  4. Design an LRU Cache — Design an LRU cache with O(1) get and put: hash map plus doubly linked list, the class diagram, eviction animated, thread safety, TTL and full code.
  5. Design a Parking Lot — Parking lot LLD for machine-coding interviews: requirements, a class diagram, Strategy for spot allocation and pricing, Factory, and runnable code.
  6. Design a Vending Machine — Vending machine low-level design: the State pattern over Idle, HasMoney, Dispensing and OutOfStock, greedy change-making, a class diagram and runnable code.
  7. Design an Elevator System — Elevator system low-level design: a dispatcher for several cars, direction as state, SCAN and LOOK scheduling as a Strategy, animated, with runnable code.
  8. Design a Movie Ticket Booking System (BookMyShow) — Low-level design of a movie ticket booking system like BookMyShow: classes, seat holds with a timeout, the double-booking race and patterns, with code.
  9. Design an Expense Sharing App (Splitwise) — Low-level design of an expense sharing app like Splitwise: classes, equal, exact and percent splits as a Strategy, net balances and simplifying debts.

Other subjects