Problem Description

The array contains product precedences, you need to apply a discount: 10% on the first 5 items, 5% on the rest - how do you handle the conditional discount logic?

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next