Skip to content

Commit

Permalink
Solved Chocolate Feast (really)
Browse files Browse the repository at this point in the history
  • Loading branch information
letitz committed Sep 27, 2014
1 parent 4d0be1b commit e58fb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chocolate_feast/chocolate_feast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def num_chocolates(money, cost, exchange):
choco = money // cost
wrappers = choco
while wrappers > exchange:
while wrappers >= exchange:
exch_choco, wrappers = divmod(wrappers, exchange)
wrappers += exch_choco
choco += exch_choco
Expand Down

0 comments on commit e58fb82

Please sign in to comment.