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.
too easy :clown:
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Maybe to make sure the input is always a boolean
why?
Yeah, but the description clearly says "first character will be the desired answer" so while your approach is more correct (or best practice) and solves wider problem, the task itself was much simpler in this case.
Closing as it's too late to make corresponding changes
how
This comment is hidden because it contains spoiler information about the solution
Still O(n). Of course, saving max and min results will make it twice faster.
There's random tests in C++, you must have select wrong language
Disabled 3.6.
It's probably a kata bug.
Make sure that you have selected Python 3.8 and not Python 3.6 and try again.
Please use a spoiler flag. It would be harder. Most of currently posted solutions use it and this would make senseless the majority of votes to rank the kata. This kata is now a bit old and has been solved many times, so in case it would be approved with te change you propose, its rank would not match its actual difficulty.
See explanation below
Loading more items...