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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why the empty lines? Because the editor sucks on mobile, added those empty lines and didn't let me delete them.
(deleting comment, not yet happy with my fork after all)
This is my suggestion to fix and simplify the test case generator.
As I pointed out, the Python test cases are currently larger than allowed. Also, the current generator code looks like a convoluted quickfixed mystery to me :-). Like, the meaning of
nCommon
is really unclear, andhigh
seems to be supposed to limit the values, but then the generator increases it anyway...The task description says "Range of possible inputs: 0 <=len(l1), len(l2) <= 70000" but the Python test cases are often larger, sometimes even over twice as large.
Worked in Python 2, of course, just looks like they don't support it anymore.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is linear time. Check out how Python's sorting algorithm works.
Do you mean the remark "Conveyor design does not imply the possibility of the part going beyond its borders"? That's rather non-sensical and confusing.
Bad judge...
Bad judge...
What about zeros? They're neither ruled out nor tested (at least not in Ruby).
In Ruby I still see this issue.
Loading more items...