Low-Level Design rounds at Swiggy focus on real product features — a shopping cart, a cab-booking flow, an expense splitter — rather than abstract textbook prompts. Interviewers consistently push candidates to clarify requirements and constraints thoroughly before any class gets designed.
Problem 1Design a Shopping Cart with Discounts
Design a shopping cart system that lets a user add items, apply discounts, and complete payment. The discount logic should be pluggable — new discount types should be easy to add without rewriting the core cart.
Requirements to clarify first
- Can more than one discount apply to the same cart at once (say a coupon plus a payment offer), and if so, in what order do they stack — or is it strictly one discount per checkout?
- Is a discount applied to the whole cart total, to individual line items, or both — and can a discount ever bring the payable amount below zero?
- Does payment need to support several methods (UPI, card, wallet) with success/failure handling, or is a single 'charge this amount' step enough for this round?
More verified Swiggy LLD prompts are being reviewed and will be added here as they clear verification.

