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.
Both description and sample tests fail to emphasize that the occurrence count is overlapping. It only occurs in the actual tests.
Reference solution for the random tests is something wrong. I managed to capture this after modifying the random tests a bit:
This test case is small enough that this can be validated by constructing the string manually, and the result is indeed 376.