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.
I had the same problem, because I was over/undercounting d in certain circumstances.
Remember, rank 0 does not count. So e.g. if user_rank == -1 and kata_rank == 1, d is 1 not 2.
The integer limit in your programming language.