For a list of item prices, each item is sold at its full price minus the price of the first item to its right that is of equal or lower price. Print the total sum and indices of items sold at full…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.