Machine coding Tutorial
Practical guide to acing Machine Coding interviews — design, clean code, and extensibility.
Start with What's Machine Coding? →Introduction5 questions
What is Machine Coding?
What is Machine Coding? Learn what a Machine Coding Round is, how it differs from DSA & LLD, and why Flipkart, Uber, Swiggy and more use it onsite.
Questions Format in a Machine Coding Round?
Learn what a Machine Coding Round question looks like, how requirements are presented, and what to expect. Explore real Machine Coding questions from Flipkart, Uber, Swiggy, Udaan, Ola, and CRED, including Parking Lot, Elevator, Splitwise, and more.
What Is Evaluated in a Machine Coding Round?
What is evaluated in a machine coding round? Learn the 8 evaluation areas — OOP, SOLID, clean code, extensibility, testing and more.
Mistakes to Avoid in a Machine Coding Round
Avoid the most common mistakes in machine coding rounds, from poor code structure and model design to inefficient storage, error handling, SOLID principles, and basic programming concepts.
Machine Coding vs LLD: What's the Difference?
Machine Coding vs LLD explained with real interview examples. Understand why LLD is more open-ended and requirement-driven, while Machine Coding focuses on implementing a clearly defined problem.
Machine Coding Questions8 questions

In-Memory SQL-Like Database
Design an in-memory SQL-like database — Razorpay’s classic Machine Coding question: tables, schema, CRUD, validation, indexing and locking with example usage.

Design Tic Tac Toe
Design and implement an NxN Tic Tac Toe game — turn-based play, move validation, win/draw detection, AI mode, and multi-session bonus features.

Design Snake & Ladder
Design and implement a multiplayer Snake & Ladder game — authentication, board setup, dice-based turns, win detection, and multi-board bonus features.

Design an S3-Like Object Storage System
Build a simplified, in-memory version of Amazon S3 — buckets, objects, authentication, access control, and versioning, inspired by S3's flat key-value design.

Splitwise (Expense Sharing) — Machine Coding Round
Splitwise machine coding round — build an in-memory expense sharing application with equal, exact, and percentage-based splits.

Parking Lot System — Machine Coding Round
Parking Lot machine coding round — build an in-memory parking lot that assigns vehicles to appropriate slots, generates tickets, and tracks availability.

Message Queue — Machine Coding Round
Machine coding round — build a thread-safe, in-memory message queue with multiple topics, publishers, and concurrent delivery.

Key-Value Store — Machine Coding Round
Machine coding round — build a thread-safe, in-memory key-value store with structured values and attribute-based search.