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.
Very slowly =/
some tests exceeded the int limit and cause the result to become negative
ok, I needed a time to understand the description, so if anyone need it - the begin is the lowest number for the sequence, the end = the greatest, we count by levels of 'steps'. and we get the full sequence from which we add all the levels together - so like this we get the final output
Test failes only in attempt.That too only with negative elements.
[ -32, -42, 10, -10, -31, -48, 40, -31, -7, -5, -7, 18, 42, 3, 7, 19, -42, -46, 46, 28, 25, 27, -5, -44 ] to deeply equal [ -32, -42, 10, -10, -31, -48, 40, -7, -5, 3, 7, 18, 42, 19, 25, 27, -42, -46, 46, 28, 33, 41, 47, -44 ]
Well, same here, i used the bubble-sort, but i'm still proud of us, as well, we are problem solvers, and we just solved one :D
OP must have brain damage because that description is the most braindead thing I've ever read
done
Not a kata issue.
See documentation why your code might work elsewhere, but not on CW.
Closing.
This comment is hidden because it contains spoiler information about the solution
If the array is empty, are there any elements out of order?
If not, then it is sorted correctly.
Thanks 4 da hint! I ll find a way
Approved
Print the input, without it we can't tell you anything, in the error message, the first value is your wrong result and the other is the expected one.
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
Loading more items...