Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
- Apply Discount to Prices
Coding
- Apply Bitwise Operations to Make Strings Equal
Coding
- Apply bitwise tricks for performance
Coding · Bit Manipulation
- Apply Operations on Array to Maximize Sum of Squares
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1357. Apply Discount Every n Orders
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source