Shopping Cart with Promotions (OOD)
Asked at DoorDash · Coding Questions · Difficulty: Medium · Last asked Dec 7, 2025
OOD Code Craft round. A shopping cart contains items (each with a name and price) plus a fixed shipping fee. A list of promotions applies either a percentage discount (does NOT apply to shipping) or a fixed-dollar discount (applies to items + shipping, cannot reduce total below 0).
Loading the problem…
More DoorDash interview questions
- AI Code Craft Challenge: Delayed-Delivery Workflow Engine
- ML System Design: Restaurant / Store Recommendation
- Code Craft: Dasher Pay
- Design a 3-Day Donation Service
- Consistent-Hash Order Router with Virtual Nodes
- Experiment Design for a Marketplace Ranking Model