about | help | code help+videos | done | prefs |
Igloos are melting!!! Your goal is to return how many igloos are left. You start with 'startNum' igloos. They are melting at 'meltRate' igloos per day, for 'days' days. Return the number of igloos remaining or zero if they have all melted. iglooMelt(20, 5, 2) → 10 iglooMelt(7, 2, 3) → 1 iglooMelt(88, 11, 3) → 55 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy