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
My issue was that there can be comments. This doesn't appear in the problem statement, but caused my program to not find the next instruction and infinite loop
Hmm... That's interesting. I don't exactly know where a large performance bottleneck is, but I'm getting the 6000ms killed error.
Are the test cases meant to test performance? I'm getting a timeout on the Python version of the Kata.
Fixed.
Your python test bench cases that check for an error are missing a string error message argument. This causes the test bench code to instantly fail when you try to test your code.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The given test case is broken because it compares the function
g.next
to the tuple(3,0)
instead of the result of the functiong.next()
.Fixed, thanks :)
Oh oops. Yeah I can fix that
You say positive integer value pairs. 0 is not a positive integer...
You should add multi-character comment markers.
You should make the test cases not run in time if the O(n) solution is not used.
You should specify in the description that the report should be mutable with the calls to the function. I assumed that the report had to be a static copy of the conditions and the
report()
method returns a new copy. Your test cases, however, indicate the less intuitive and more error-prone idea that report always returns the same object that changes with the new information from the function callsLoading more items...