about | help | code help+videos | done | prefs |
Return the least number of pennies that we can carry around for having n dollars. For instance: if n = 10.11$, we can carry 11 cents as two nickels and a penny, so the minimum number of pennies would be 1. lessPennies(1.01) → 1 lessPennies(200.0) → 0 lessPennies(0.0) → 0 ...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: 160
Copyright Nick Parlante 2017 - privacy