Apply discount to product costs
Filed under Target
The question
Given an array of product costs, apply a 30% discount to any product costing over 50 dollars.
No write-up yet. Related questions below have one.
Related Target questions
Collected from public candidate posts and coding forums. Updated Nov 2026.