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.
We need downvote buttons :p
this is just beautiful...
Nice. I arrived at something similar.
What in the code needs
Import java.lang.Math;
?Yes. Exceptions shouldn't be used for flow control. In a real setting, you'd probably parse it as a long (and possibly catch that exception) then check the size for the actual type.
That being said, it is really easy to see what is happening, which is good.
And it looks pretty. :-)
Wouldn't the code be slower because of the try-catch check?
Use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
Amazing !!!
wow very smart men!
I think it should be better if you convert the input to uppercase outside the loop and instead of slice why not use trim method? We can also just use replace method instead of loop
My solution is easier to understand. This was a lot like Fizzbuzz.
Super
Nice Work Bro!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...