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.
Hi patrick :) I solved your kata and I was thinking it would be even better if you add some random test cases cause now some users could just hard code their values in the function and succeed.
Thanks for pointing that out, I've updated the description accordingly. I chose to exclude the end of ranges for practical reasons.
Yeah ) Still, excluding the end of a range of discrete values is usually more convenient. It should probably be explicitly stated in the description, though.
Your solution seems just fine, it passes all tests when I submit it. Please try again later - sometimes codewars engine fails. It happens very rarely though.
Please try to submit again.