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.
Hi, thanks for reporting. I've changed the description an the test cases. There were multiple issues:
-i
an-u
are exceptions. The correct instrumental form ofszaru
isszaruval
and forPeti
isPetivel
. I added this case to exceptions and excluded them from the test cases.Regards,
suic
Some people like the math. It is, afterall, tagged math.
substring
is valid up to and including the length of the string. It would not throw on error onsubstring(1)
. In fact, it would still behave fine (empty string + 1 char).From the
String
doc: Throws: IndexOutOfBoundsException - if beginIndex is negative or larger than the length of this String object.