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.
imo this is really elegant
Took a while to make it in Java, but made it in JS in 1 min...
F# me!
No need to put String in the middle of all this. BigDecimal has a constructor taking a primitive double value.
Actually, your solution makes me look up BigDecimal and I see MathContext and it gives me a different idea how to do it. Thanks.
yep, you are right. Usually this solution should get a NullpointerException.
Clever solution, but this will cause a lot of string concatination garbage.
This comment is hidden because it contains spoiler information about the solution