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 should have seen this. Thank you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks to the original author of this kata for creating such a great challenge!
2*(1+89)==180
This comment is hidden because it contains spoiler information about the solution
Very good kata. Back to university for a few hours.
D translation
Approved :)
The original kata included two big fixed tests, your solution times out on each of them. It's clearly in the original intention not to allow the most naive solutions to pass the kata. You need to find some optimization. It's not that hard, though.
Whoever does these translations needs to remember that this is a 7kyu. There shouldn't be an insanely large edge case that times out for beginner kyus.
ie. my Python solution passes sample and fixed tests, but not whatever is causing it to timeout in the edge case file.
Must have been something else. After waiting about fifteen minutes and resubmitting the same solution, it no longer times out. Top solution in JS finished in ~7 seconds this time.
I've just tried the 3 top solutions in JS, they pass the attempt tests in about 1 sec.
The top voted solutions in C++ all pass the attempt tests in ~3 seconds (the reference solution is similar to them). All the other languages have been added today and tests have not been changed in any of them.
I attempted the kata in javascript.
Loading more items...