re: Daily Challenge #111 - 99 Bottles of Beer VIEW POST

TOP OF THREAD FULL DISCUSSION
re: My solution in Swift (without Bonus it's saturday 😛) : func numberOfBottles(numberOfBottle: Int) -> (restOfBottles: Int, loop:Int) { guard...
 

It looks like number *= 2 at the end of the loop should be replaced with number += 1, because the number of removed bottles on each iteration increases by 1, not doubles.

 

It's right ! I do that too fastly. Thank you for your attention.

code of conduct - report abuse