Timeline for Codility Frog Jump solutions
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 22, 2020 at 13:40 | comment | added | Timo |
Interesting that in Python 3 there is no decimals with your solution which results in no float and no ceil needed.
|
|
Jul 23, 2014 at 17:24 | comment | added | SylvainD | Also, I have actually updated my answer because I just realised that we were making things more complicated than they should be. | |
Jul 23, 2014 at 17:24 | history | edited | SylvainD | CC BY-SA 3.0 |
added 486 characters in body
|
Jul 23, 2014 at 16:44 | comment | added | SylvainD |
Glad you liked it! To be fair, I learnt about it as I wasn't quite satisfied with the (1 if c else 0) . At the end, it is quite cool that the solution reads like English : return the quotient plus one if there is a reminder.
|
|
Jul 23, 2014 at 16:34 | comment | added | Jay | Very nice! Never thought about using bool that way | |
Jul 23, 2014 at 15:55 | history | edited | SylvainD | CC BY-SA 3.0 |
added 636 characters in body
|
Jul 23, 2014 at 15:41 | history | answered | SylvainD | CC BY-SA 3.0 |