← Microsoft questions
CodingMediumReported in a candidate post, Dec 2025

Calculate item sale prices and indices using lower/equal price on right

Filed under Microsoft

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.

Related Microsoft questions

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