" A company is planning to provide an extra discount to its customers e-commerce planning to give extra discount" asked in wipro
//"ODD DIGITS IN ORDER ID CODE" asked in wipro
A company is planning to provide an extra discount to its customers. Every order has an order ID associated with it which is a sequence of digits. The discount is calculated as the count of the unique repeating digits in the order ID.
Write an algorithm to find the discount percentile given to the customer.
Comments
Post a Comment