Final Prices With Discount Problem
Final Prices With Discount Problem — ExecCode Medium DSA Practice
Solve the Final Prices With Discount problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Practice companion for CodeFlow final-prices-with-discount.
Examples
Input {"prices": [8, 4, 6, 2, 3]}; Output [4,2,4,2,3]. Input {"prices": [0, 2, 3, -9, 5]}; Output [9,11,12,-9,5]. Input {"prices": [0, -2, -5, 8]}; Output [2,3,-5,8]
Constraints
1 ≤ n ≤ 10^5
Practice Final Prices With Discount free on ExecCode. Browse DSA problems, topic map, and placement guides.