Practice
Untimed, unranked engineering problems. Familiarize yourself with the IDE, the built-in agent, and the test loop before your first contest.
Practice on-ramp
Problems are visible to everyone. Sign in to open an account-gated practice workspace in the same browser IDE, terminal, and public-test loop. The practice agent and submissions arrive in the next slices. Practice never affects contest standings.
- Intro25 min·JavaScript·100 points
Duplicate orders after a client retry
A client may retry an order request after a timeout. Reusing the same idempotency key must return the original order and must not add another order. Different keys must still create independent orders.
View problem → - Standard30 min·JavaScript·100 points
Reserved stock becomes available again
Warehouse availability must subtract active reservations from on-hand stock so two reservations cannot oversell an item. Releasing a reservation must make its quantity available exactly once.
View problem → - Advanced35 min·JavaScript·100 points
Invoice discount rounding depends on line count
Discounts are integer basis points. Calculate half-up rounding once on the invoice subtotal, not independently on each line. All calculations must preserve integer-cent precision within the safe integer range.
View problem →