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.
Indeed, and thanks for your message, I've had a nightmare with random tests before seeing it...
There are still inverted ranges, in "Long sets/huge ranges"
can you check now?
[Python] In random tests there are ranges with begin > end. Description says nothing about this ranges.
For example:
expected result:
(150312 150001)
is copied,(590379 230096)
is ignored, why?changed to actually merge the ranges
woops...
added, with performances tests.
done
Duplicate (pretty close but not totally equivalent... -> ?)
In the example test the arguments of assertArrayEquals() should be swapped: expected first, actual second.
Needs random tests
This comment is hidden because it contains spoiler information about the solution
Good catch! Will refactor to account for this edge case, thanks!
There is a minor corner case
you want to choose the bigger right end point when merging, otherwise [1, 5, 2, 3] would give [1, 3].
I have updated the test case. But apart from this, Elegent solution!!
digit_count is better name for count_digit. Because it returns something. (instean of doing something with side effect)
Loading more items...