Loading...

Low-Level Design & Machine Coding

Master Object-Oriented Design, SOLID principles, design patterns, and end-to-end clean code for tech rounds.
0 / 6Problems Solved (0%)
1
Easy
3
Medium
2
Hard
🔍
MediumClassic Machine Coding
⏳ To Do

Design a Parking Lot System

Multi-floor parking lot supporting different vehicle types (Motorbike, Car, Truck), spot assignment algorithms, and automated ticket/fee calculation.

Strategy PatternFactory PatternSingleton Pattern
💻 4 implementation filesExplore Architecture & Code →
MediumClassic Machine Coding
⏳ To Do

Design an API Rate Limiter

Configurable in-memory / distributed rate limiter with support for Token Bucket, Leaky Bucket, and Sliding Window Counter algorithms per client IP/API key.

Token BucketStrategy PatternDecorator / Middleware Pattern
💻 2 implementation filesExplore Architecture & Code →
HardClassic Machine Coding
⏳ To Do

Design Splitwise (Expense Sharing App)

Expense management app allowing users to split expenses equally, by exact amounts, or by percentages, with optimal debt simplification graph reduction.

Command PatternStrategy PatternObserver Pattern
💻 3 implementation filesExplore Architecture & Code →
HardConcurrency & Multi-Threading
⏳ To Do

Design an In-Memory Pub/Sub Message Broker

Asynchronous topic-based Publisher-Subscriber message queue (like a lightweight Kafka or RabbitMQ) with offset tracking, subscriber worker pools, and concurrent message broadcast.

Observer PatternWorker PoolProducer-Consumer Queue
💻 4 implementation filesExplore Architecture & Code →
MediumClassic Machine Coding
⏳ To Do

Design an Elevator Control System

Multi-car elevator controller managing internal destination requests, external hallway hall-calls, door states, and optimal scheduling algorithms (LOOK / SCAN).

State PatternStrategy Pattern (SCAN / LOOK algorithm)
💻 2 implementation filesExplore Architecture & Code →
EasyClassic Machine Coding
⏳ To Do

Design Tic-Tac-Toe (N x N)

Scalable N x N Tic-Tac-Toe game supporting 2 or more players with O(1) time move validation and winner detection.

Strategy PatternState Machine
💻 1 implementation filesExplore Architecture & Code →