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.
How can this code be a best practice? It is at least twice as slow as the mathematical method of calculating the square root of a number
Wait wha-
Oh?
What possible combinations are missing?
You didn't include all the possible combinations.If there were more test cases then it could be a problem
good trial
Clever solution!
True but you have to use floor division in that case, otherwise you will get an error for range doesn't work with floats
smart
I love how you use the primitive char, but yes you need to if check for size 4 or less and return the string
Is there a reason for writing it in square brackets ?
The highest rated and most clever really don't seem to be best practice. They are always harder to read.
Lines of code are cheap.
This comment is hidden because it contains spoiler information about the solution
Just gorgeous.
Interesting. I am unsure why this is best practice when Java gives us regex out of the box. Cyclomatic complexity of this vs anything using regex.
This comment is hidden because it contains spoiler information about the solution
Loading more items...