Skip to main content
Datainteg
Career OS
Roadmaps
Practice
Resources
Community
Blog
Pricing
About
Login
Start Free
Machine Coding Interview Questions · Datainteg · Datainteg Career OS
Interview Prep
Rounds
Machine Coding
Machine Coding Interview Questions
Timed machine coding round building a small working application from a spec.
12 questions
Open in question bank
Machine Coding questions
Implement a webhook signature verifier the way Stripe does it: given the raw request body, the Stripe-Signature header (t=timestamp,v1=hmac), and an endpoint signing secret, verify the payload is authentic and not replayed. Design the classes/API and implement it.
Advanced
· coding
premium
Implement idempotency keys for a payment API so that a client that retries a create-charge request never double-charges. Design the data model, the class/API, and handle concurrent duplicate requests.
Advanced
· architecture
premium
Build a rate limiter for the Stripe API that supports per-key tiers (e.g. free vs paid customers get different limits). Design the class/API, pick an algorithm, implement it, and explain how it works distributed across many servers.
Advanced
· architecture
premium
Implement a double-entry payment ledger that records money movement. Support posting transactions, guarantee every transaction balances to zero, keep entries immutable, and support querying an account balance. Design the classes and API.
Advanced
· architecture
premium
In 90 minutes, design and build a working ride-sharing / carpool system where users can offer rides on a route and others can search and book seats.
Advanced
· coding
premium
Build an online food-ordering system: restaurants with menus, a customer cart, order placement, and order status tracking.
Advanced
· coding
premium
Design a multi-level cache: reads check L1, then L2, then main memory, and the design should support a configurable number of levels and an eviction policy.
Advanced
· coding
premium
Build a Splitwise-style expense-sharing system: users can add expenses split among a group (equal, exact, or percentage) and the app shows who owes whom.
Advanced
· coding
premium
Implement the game of Snake and Ladder for N players on a configurable board, supporting multiple snakes and ladders and a dice roll, with a working demo.
Intermediate
· coding
premium
Design a food-ordering system (Zomato/Swiggy-style LLD): restaurants and menus, a customer places an order, and observers are notified on status changes.
Intermediate
· coding
premium
Design a discount/coupon engine: apply coupons and offers (flat, percentage-with-cap, BOGO, free-delivery) to a cart, honoring stacking rules.
Intermediate
· coding
premium
Implement an in-memory cache with a pluggable eviction policy (support both LRU and LFU) and a fixed capacity.
Advanced
· coding
premium