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.
Regex is actually slower.
Nesting ternary. No thanks.
No, it is more difficult than the other 6kyu tasks.
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.
Chrono79. I think you may be wrong
4 years and 68 days in seconds is this
That number is bigger than the input (127246240)
Using an online tool, https://www.calculatorsoup.com/calculators/conversions/time.php
gives seconds to years as 4.03. If it was 68 days, it would be more like 4.186
Can you go back and check please ?
Discussion on notes around handling of version (i.e. are we validating the parameter or the embedded value in the string) is confused in explanation and a bit silly. Convoluted.
Requirements are just random bits and bobs. It's simple string handling and not a 5kyu.
It's a kata from 2013. It would be at least 6kyu today.
I don't see how this is a 5kyu