Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
my goal is to get my python code to look like actual python code
mostly it depends upon readability
this was genius
That's the least amount of '1's and/or '0's to add to the inputstring, to achieve a multiple of five.
For example, if the input is 5, then:
5 (== '101')
Add a '0' to '101' -> '1010', equals 10 (decimal). So the shortest possible string in this case = '0'
You can also add '1111', because '101' + '1111' == '1011111' -> results in 95, but '1111' is a longer string than '0'
what does it mean by shortest possible string?