← Swiggy questions
Low-Level DesignReported in a candidate post, Dec 2025

Design a shopping cart with payments and flexible discounts

Filed under Swiggy

Design the classes for a shopping cart that supports adding and removing items, applying discounts in different ways (for example percentage, flat amount, buy-X-get-Y) and paying with different…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Swiggy questions

Collected from public candidate posts and coding forums. Updated Nov 2026.