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.
Exacly, it's very nice =))
I like how you multiply the result by 256 before adding the parsed value.
I shifted my parsed value and then added it to the result.
Your solution looks way nicer :)
It didn't work for me; problem is, the test cases have different result than what the actual formula gives. Am i doing something wrong?
Yep ma bad. sry
@vztot
Please correct details or tests in java lang. Input Year with in range (1000 ≤ y ≤ 9000); test: assertEquals(9012, HappyYear.nextHappyYear(8999));
Thanks! It worked!
For those who stuck on this in java with precision issues u may use BigDecimal with MathContext.DECIMAL128
i dont get it too...
Yep. Worse kata that i've seen.
it's a nuke!