Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1357. Apply Discount Every n Orders
Implement a Cashier class that maps product IDs to prices and returns the total bill (sum of amount[i] * price[product[i]]), applying a given percentage discount to every n-th customer. The challenge is to track customer count and compute bills efficiently using the provided product-price mapping.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.