Target India-Style Machine Coding Round: Format, Tips & Practice Problems
Written and reviewed by Sahil Srivastav
Retail coding exercises often look like a cart feature but grade inventory, promotions, and fulfilment invariants. Rounds in the style of Target India use that compact business domain to assess working design.
Gronex provides original practice repositories and keeps the company framing style-based.
What a Target India-style machine coding round looks like
Expect a cart, promotion, reservation, or order workflow with concrete rules and a runnable service expected within the time box.
A live change may add a promotion stack, pickup option, or partial cancellation. Keep rules as policies and state as transitions.
Use tests to show exact totals, stock behaviour, and duplicate-request outcomes.
How you’re evaluated
Promotion rules
Eligibility, caps, and stacking are deterministic.
Stock lifecycle
Reserve, confirm, cancel, and release are coherent.
Order state
Partial and terminal states are modelled explicitly.
Readable demo
The main flow can be run and explained quickly.
Common mistakes that fail this round
- Applying promotions in arbitrary order.
- Subtracting stock before a reservation is accepted.
- Losing item-level detail during a partial cancel.
- Using floating point for money.
- Skipping duplicate checkout tests.
Quick tips for the room
- Declare promotion precedence.
- Track reserved and sold separately.
- Use integer minor units.
- Keep a demo script.
How to prepare
Build a cart and reservation service under a 90-minute timer, then add one promotion extension.
Use the linked problems to rehearse exact arithmetic and state transitions.
Practice problems in the Target India-style round format
Each is a real backend repository with a failing test suite — the same working-code standard the round applies. Open the brief and read the full problem, no signup required.
Seat Reservation System
Reservation state and availability. Free to try.
Open the challenge →FAQ
Were these Target India questions?
No. They are Gronex originals in the style of retail rounds. Gronex is not affiliated with Target.
How do I handle stacked offers?
Represent each offer as a policy with a declared order and cap.
Should cart prices be mutable?
Define when a quote becomes committed and test that boundary.
What should I demo?
A happy checkout, a promotion edge case, and a cancellation or retry.
Related
Gronex is not affiliated with, endorsed by, or sponsored by Target India. All company names and trademarks belong to their respective owners. The problems on this page are Gronex originals written in the style of such interview rounds — not actual interview questions from Target India.