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.
I had problems with the random tests, but those were resolved once I made copies of "recipe" and "available" instead of using them directly. I think the random tests expect your function to not mutate the original objects passed in.
Well that's the thing. The example tests all pass. It's only when I attempt the other tests that it times out.
Even with "Example Tests:" ? If needed keep only the first one of "Example Tests:".
I tried printing the input, but even then it simply times out. I think at least the first few tests would be simple cases and I expect my code to not time out in these cases.
Print the input.
If I simply increase the range of my search by 1 it times out. I think it would be good if at least the passing tests were printed out before it times out. That way we know which test timed out and can optimize for those tests. I've also noticed that simply adding an else block for a case where [] is the answer causes a time out!
Agree. I've run into the same problem.
The answer expects a certain order in the output list. I get this error:
✘ ['ba', 'ab'] should equal ['ab', 'ba']
My code is correct, but because the expected answer can only be in a certain order I can't pass this. Any way to get the answer to be in the exact order expected?