Running a machine-coding round · core
Plan a 60–90 minute machine-coding round
Spend the first 5–10 minutes clarifying and planning components and state, have one flow working end to end by about a third of the time, add features in priority order with time checks, and keep the last 10 minutes for edge cases, accessibility and a walkthrough.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Clarify (≈5 min): must-haves vs nice-to-haves; the data shape and whether an API or mock is given; React or vanilla; allowed libraries (usually none: no UI kits, no react-window); styling expectations; mobile or desktop.
- Plan (≈5 min): write the component tree, the state (what is source, what is derived) and the events as comments at the top of the file before coding.
- Skeleton first: static markup with mock data → wire state → one complete flow working. 'Working core flow early' is the first item on the shared rubric.
- Then features by priority (P0 before P1); after each one, run it and check it; don't polish CSS early.
- Time checks: at 50% the core must work; at 75% stop adding features and handle edge cases (empty, loading, error, rapid clicks, long text), keyboard and labels.
- Last 5–10 minutes: walk through the code, name what you would add next (tests, virtualisation, a11y polish) and the trade-offs you made.
- The rubric graders share: working core early, component decomposition and reusable API, state design, edge cases, accessibility, styling/responsiveness, performance, code quality (naming, files, no globals), communication.
- Flipkart-style 90-minute rounds collect your code as a zip and then review it line by line; PhonePe ran a 2026 round on a hackathon platform with a 30-minute implementation review. Clean names and files matter as much as features.
The red pen
Common traps: mistake → fix
Mistake: Start typing immediately
Fix: you build the wrong thing or paint yourself into a bad state shape.
Mistake: Perfect the CSS first
Fix: the core flow is unfinished at the deadline.
Mistake: One giant component
Fix: scores low on decomposition and is hard to change mid-round.
Mistake: Stop at 'it works'
Fix: edge cases and accessibility separate mid from senior.
Easy to hard
Questions interviewers ask, easy to hard
- Here is the problem. What do you ask before you start?
- Show me your plan: components and state.
- You have 20 minutes left and two features remain. What do you do?
- Walk me through your code. What would you do with another hour?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.