Skip to the page

What companies ask · mid

What Indian product companies ask in machine coding

Machine coding is usually the first filter at Indian product companies: Flipkart wants modular vanilla JavaScript apps in 90–180 minutes followed by a code walkthrough, Razorpay and Zepto want reusable React components, Swiggy uses HackerRank or CodeSandbox builds, Atlassian's first screen bans React, and Uber and PhonePe mix machine coding with DSA.

The notes

What you must know

  • Flipkart (UI Engineer 2 / senior): 90–180 minute builds, often plain HTML/CSS/JS with modular code; recent tasks: a Google Calendar clone, a chat platform; code submitted as a zip, then reviewed line by line (naming, folder structure, 'functional vs class', debounce for typing).
  • Razorpay: machine coding first; 'real-world feature with generic reusable components' — MUI-style Tabs (2024), autocomplete (2025), a component with pagination and API search (SDE-2, Nov 2025); 2026 senior reports mention AI-assisted machine coding.
  • Zepto: toast system (1.5–2 h), progress bars, a configurable form, an API batching function and a global toast queue for React Native; early rounds can be run by a third-party vendor.
  • Swiggy: HackerRank OA with a React build (file explorer), a component kit described by JSON, full-stack CRUD scored by hidden tests; CodeSandbox preferred.
  • CRED (older reports, still cited): vanilla typeahead with the given API, a React form with PAN/Aadhaar fields and 'optimise for 10+ inputs'.
  • PhonePe: machine coding is the main filter, 90–120 minutes, judged on modularity, validation, error handling and extensibility; a 2026 report ran it on a hackathon platform with a zip submission and a 30-minute implementation review.
  • Atlassian: Karat screen in plain JS/CSS (no React), then React machine coding judged on edge cases and code quality ('output alone does not guarantee selection'); tasks include gating UI behind an async feature-flag API and tabs with lazy panels.
  • Uber: grid lights, multiple counters, a task scheduler, Map Async Limit, on CodeSignal; Headout/Meesho: virtualised lists and config-driven tables with variable-height virtualisation.

The red pen

Common traps: mistake → fix

  • Mistake: Only practise React

    Fix: Flipkart and Atlassian screens may forbid frameworks.

  • Mistake: Treat it like LeetCode

    Fix: the rubric rewards structure, states, accessibility and communication, not just output.

  • Mistake: Ignore the walkthrough

    Fix: code you can't explain line by line fails the review round.

Easy to hard

Questions interviewers ask, easy to hard

  1. Which companies on your list run vanilla-only rounds, and how did you prepare?
  2. Walk me through the code you submitted: why this file structure?
  3. What would you change to make this component reusable across teams?
  4. Build the same feature again in half the time: what would you skip?

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview