Final Prices After Discount Problem
Final Prices After Discount Problem — ExecCode Easy DSA Practice
Solve the Final Prices After Discount problem on ExecCode. Free online easy DSA practice in Stack. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Description You are given the input needed to solve Final Prices After Discount. Your task is to prices: count line then price list. Return space-separated final prices.
Examples
Input {"prices": [10, 1, 1]}; Output 9 1 1. Input {"prices": [1, 2, 3]}; Output 1 2 3. Input {"prices": [8, 7, 6, 5, 4]}; Output 1 1 1 1 4
Constraints
1 <= len(prices) <= 10^5
Practice Final Prices After Discount free on ExecCode. Browse DSA problems, topic map, and placement guides.