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.
This comment is hidden because it contains spoiler information about the solution
Those aren't equivalent, the first one is an infinite loop, maybe you meant
i <= b
.It's odd if you did really two equivalent things in both versions, but we have absolutely no possibility to know if you don't provide more informations.
The first one is not the input, it's what your function returned, the other is the expected result. To check what the input is, print it, it'll appear above the test result.