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.
Powerful!
I felt that, this one was brutal haha.
So neat. Next time I will string multiple conditions together. Thanks for sharing!
.
You must modify the input. Please check it. I've just tried again my solution, it works nicely and cannot return a negative value since it returns an unsigned.
C++ kata is having major issues:
i do not think that it should be even possible to get negative lengths from intervals
Great Kata... a problem like this stresses the importance of thinking from various perspectives and rewards creative thinking. My solution ended up being very long-winded; if only I took more time to understand the requirements of the problem.