← Back to demo
Warm-up Coding Real-life challenges Write a function

Is shipping free?

10 pts
A store offers free shipping at threshold or above. Return 0 if total reaches the threshold, otherwise fee. All amounts are non-negative integer cents; total is the cart amount after discounts, excluding shipping.

Sign in to solve this challenge — an account is free. The demo works without one.

All puzzles are free. An account unlocks the full catalog, saved progress and points.