Low level design, for machine coding and object oriented design rounds
Study Low-Level Design.
Design principles, patterns and full designs, written the way the interview wants them, in Java that compiles and runs.
Start with Single Responsibility PrincipleSee all articles
Free to read, no signup required.
- solid principlesSOLID PrinciplesFive rules for classes that are easy to change, each shown on code that breaks it and code that follows it.
- design principlesDesign PrinciplesEveryday rules of thumb for classes that are easy to read, test and change.
- creational patternsCreational PatternsWays to create objects without tying the caller to one class or to a long constructor.
- structural patternsStructural PatternsWays to fit classes together: wrap one, stand in for one, or put a simple front on many.
- behavioral patternsBehavioral PatternsWays to split up behaviour: who decides, who gets told, and who does the work.
- concurrency patternsConcurrency PatternsWays to share work and data between threads: who makes it, who does it, how many run at once, and who may read or write.
- full designsFull DesignsOne interview question, designed end to end the way a 45 minute low-level design round goes.
SOLID Principles
5Five rules for classes that are easy to change, each shown on code that breaks it and code that follows it.
Design Principles
7Everyday rules of thumb for classes that are easy to read, test and change.
Creational Patterns
5Ways to create objects without tying the caller to one class or to a long constructor.
Structural Patterns
7Ways to fit classes together: wrap one, stand in for one, or put a simple front on many.
Behavioral Patterns
13Ways to split up behaviour: who decides, who gets told, and who does the work.
- 01Strategy patternAppears inParking LotElevator SystemSplitwise+22
- 02Observer patternAppears inParking LotLRU CacheLogging Framework+2
- 03State patternAppears inVending Machine
- 04Command pattern
- 05Template Method pattern
- 06Chain of Responsibility pattern
- 07Iterator pattern
- 08Mediator patternAppears inElevator System
- 09Memento pattern
- 10Visitor pattern
- 11Interpreter pattern
- 12Null Object patternAppears inFood Delivery (DoorDash, Swiggy)
- 13Specification pattern
Concurrency Patterns
4Ways to share work and data between threads: who makes it, who does it, how many run at once, and who may read or write.
Full Designs
27One interview question, designed end to end the way a 45 minute low-level design round goes.
- 01Parking LotUsesStrategy patternObserver pattern
- 02Elevator SystemUsesStrategy patternMediator pattern
- 03SplitwiseUsesStrategy pattern
- 04BookMyShowUsesStrategy patternDecorator pattern
- 05ATMUsesStrategy pattern
- 06Tic-Tac-ToeUsesStrategy pattern
- 07LRU CacheUsesStrategy patternObserver pattern
- 08Library Management SystemUsesStrategy pattern
- 09Snake and LadderUsesStrategy pattern
- 10Rate LimiterUsesStrategy patternFactory pattern
- 11Meeting Room SchedulerUsesStrategy pattern
- 12Logging FrameworkUsesStrategy patternDecorator patternObserver pattern
- 13ChessUsesStrategy pattern
- 14Ride Sharing (Uber)UsesStrategy pattern
- 15Hotel BookingUsesStrategy patternDecorator pattern
- 16Food Delivery (DoorDash, Swiggy)UsesStrategy patternNull Object pattern
- 17Stack OverflowUsesStrategy pattern
- 18Vending MachineUsesState pattern
- 19Car RentalUsesStrategy pattern
- 20Pub-SubUsesStrategy patternProducer-Consumer pattern
- 21Notification ServiceUsesStrategy pattern
- 22Shopping Cart (Amazon, Flipkart)UsesStrategy pattern
- 23Traffic Signal
- 24Online AuctionUsesStrategy patternObserver pattern
- 25Inventory ManagementUsesStrategy patternObserver pattern
- 26URL ShortenerUsesStrategy pattern
- 27Ticket WaitlistUsesStrategy pattern
More coming soon.