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.
oh f*ck, should have thought of this
Approved
python new test frame work
I came up with this solution too :)
Still a bit confused. Description says integer arrays so wouldn't this solution fail if the missing element was a 0 or potentially a negative number?
omg, i found it. this was my bad.
Read the description, first sentence:
This is clever but will fail if string array exists in test cases
nothing to do anymore about that, so, resolving...
@dukeofgarda Nice Kata
duke
.. C++ Translation .. Please Revise and Approve .. thanks in advance ... RegardsZizou
I can log the the smallest integer, but it keeps saying "TypeError: undefined is not iterable". What's the problem?
This is an obvious duplicate... how was this accepted?
Duplicate: https://www.codewars.com/kata/max-diff-easy-1
However, the sample tests still cointain this one:
Furthermore, none of the examples show clearly if you want the see the biggest difference between neighbours (that's what all the sample tests suggest); or the biggest difference between any two elements in the array (that's what you expect). See:
A simple example would make it clear, like:
I'm passing every sample test in Python, but when I attempted to submit final I can't pass this test. I've scratched my head and gone over my equations a good amount of times, when I finally decided to graph it in Desmos and notice the 'correct' solution isn't even on the enemy's ray of movement. https://i.imgur.com/hmgnmDo.png
Loading more items...