Skip to main content

Practice ยท 3 of 4

Debug the shipping tiers

CHALLENGE
Difficulty: beginner+25 XP

This classifier has a logic bug: some orders get the wrong tier. Trace each price point, find the flawed branch, and fix the minimum amount of code. Rules: 100+ โ†’ "free", 50โ€“99.99 โ†’ "5.00", below 50 โ†’ "8.00".

Back to lesson: Practice: Branch and bound