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 can't tell if my code is somehow finding the gas prices wrong for some cases, but I am getting an error with some of the random cases and it seems like there are at least sometimes random tests where there is a tie so two sets of alterations have the same cost and same length.
fork was approved
Fork with fix
It seems there is a typo in "Simple tests" (in "Basic tests"):
should be
done
Fork with the above suggestion
These two could be refactored to use chai's specific "is array" and "array length" checks. (minor suggestion)
.
Thanks!! Translation approved
Javascript translation
Your code being too slow is not a suggestion.
This comment has been deleted.
Timed OutPassed: 10Failed: ?Exit Code: 1
Test Results:
Log
['Liquor', 'Vodka', 'Mint', 'Pineapple', 'Watermelon']
Basic tests
Simple tests
(5 of 5 Assertions)
Impossible cocktails
(2 of 2 Assertions)
Not enough ingredients
(2 of 2 Assertions)
Ice: taste = 0
Completed in 9.37ms
Performance tests
26^2 ingredients (5 datasets)
STDERR
Execution Timed Out (12000 ms)
Why did my code time out?
Our servers are configured to only allow a certain amount of time for your code to execute. In rare cases the server may be taking on too much work and simply wasn't able to run your code efficiently enough. Most of the time though this issue is caused by inefficient algorithms. If you see this error multiple times you should try to optimize your code further.
Do you think I should raise it to 3kyu?
Loading more items...