OA [CodeSignal] Final Prices After Discount
Uber interview questions · Medium · OA round · 6 tests
Replace each price with its discounted value, where the discount is the nearest following price that does not exceed it.
The full question, tests and reference solution are available with a plan that includes Uber.
Run your code with Ctrl+Enter to see results.