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.
long one-liner which is not that easy to read. this good too
Works since Java 16. This solution was written in 2018 when we only had Java 8.
tacticalcacti, use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
Could anyone break down this regular expresion please.
note: the bitwise operator allows to not use parentheses for the previous operation (which would become required when using the usual/dedicated operator to achieve the same logic without the bitwise stuff).
PS: don't forget the spoiler flag, plz (comments are visible from the dashboard)
This comment is hidden because it contains spoiler information about the solution
thanks, added fix to translation to that one instead: https://www.codewars.com/kata/543ddf69386034670d000c7d.
Not a kata issue.
It is mentioned as feet per hour.
Read the description
the last array is empty so you have to return 0
yes.
To return a copy, so that the user getting that list cannot mess with the internals of the Warrior instance (but that code is bad, to achieve that purpose, I don't know why I wrote it that way... Look at the fork, it's far better)