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.
When aptempting in kotlin, for the "textPageIndex" test, it will say incorrect value :
expected -1, was 0 when returning -1 if out of range
expected 0, was x if we change the if out of range to return x (if that x is not -1, if it is -1 refer to previous line)
Wouldn't this be the best to put in your code if you need to calculate that ?