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 is brilliant!
Warning: this does not function properly, but the tester did not detect the invalid results. Certain inputs will cause result to reach zero, exiting the while loop prematurely. The return anticipates result equaling zero for positive results, and these false-positives slip through. Ensuring that result is compared against -1 ensures that such an issue is avoided.