Software Engineer • Intern
Software Engineer • Intern
High QualityInterview Summary
The interviewer only gave example inputs, so a large part of the round was clarifying the exact business behavior before coding. The problem was not algorithmically hard, but the edge cases around invalid rules and overlapping discounts made it easy to get tripped up.
Interview Details
Coding — Checkout Discount Rule Engine: The main task was to compute the final price of a cart after applying a promotional rule. Each rule could target one or more product groups and apply either a percentage-based adjustment or a fixed-value adjustment. A rule was considered invalid if its discount definition was contradictory or incomplete, so the implementation needed validation before doing any price calculation.
- Part 1 — Single Rule Validation and Application: The first part involved one promotional rule and a cart with several items. The rule could include eligibility requirements such as a minimum number of qualifying items or a minimum qualifying
Unlock Full Details
Create a free account to unlock this interview experience report.