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.
nice radix conversion from int to string
counting matches of '1' is simple, and could easily scale to higher radixes such as octal
could easily be extended to match multiple digits, such as .count('137')
range traversal is clear
accumulator function sum() over a list is also a nice aggregate function
Clever, but this code is less readable than if you split it into several functions with explicit names.
This comment is hidden because it contains spoiler information about the solution
Im not on that level of thinking yet. I'll try to study more on how boolean works.
This comment is hidden because it contains spoiler information about the solution
wtf, how..
genius
neat
I'm happy that my solution was the exact same as the top solution for this Kata. Came up with the solution in to time at all, I am learning lots from Codewars.
I don't think so. Your solution seems perfect to me. Have you got any problem in passing tests?
That's right- using a return statement also exits the function.
wont it return both the test average, and the string here?
or does return cancle out the whole funksjon?
but Bruce is stronger than Chuck -_-
Just make a research with the names of the methods you don't know and you should find all the informations about it.
Someone can explain me this please? ^^
Loading more items...