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.
I like it)
Hi
my code works with the present tests ,
but if the max of the array is simultaneously at the beginning and the end , it should fail :
so the tests should take that conf into account
Java, maybe other languages:
no fixed tests for arrays of length
0
or1
, which the description does not rule outFixed by last python update.
else is unecessary, you just do if
Mind twister .. Thank you for this..
Not fixed IMHO.
Nice Kata,
However my python solution is wrong and still passes most of the times :
https://www.codewars.com/kata/reviews/5d763d9ca4b23f0001b675ad/groups/6166c58d96985700014c8fd2
I suggest adding the following test :
EDIT :
By investigating further I think the fixed tests are wrong :
The last array is evaluated, but never tested.
The consequence is that the most upvoted solution is wrong.
Other than the not so useful output fail messages, this was actually a nice kata, thanks.
what information were you hoping to get from the error message? to which language are you referring?
Doesn't provide a useful message on test fail.
where can I find the extended message on test fail >> ???
Added random tests to ruby
Added random tests + edge case
Should be fixed now.
Should be fixed now.
Loading more items...