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.
OP's code is not correct, it contains a trailing newline.
@hobosky, except it's called "Minimax" :)
Anyone still wondering, my solution uses MinMax and with a bit of tweaking it works smoothly, complete test suite runs ~2.5s.
My solution MinMax also gets time out error.
But there is less than 20K possible positions.
Use a cache !
Same here, I get the following error:
(len = 15)
Expected different result:
Expected string length 763 but was 882. Strings differ at index 21.
Expected: "Lorem-----ipsum\ndolor\nsit\namet,\nconsectetur\nadipiscing\nelit.\n..."
But was: "Lorem-----ipsum\ndolor-------sit\namet,\nconsectetur\nadipiscing\n..."
---------------------------------^
Edit: Don't blame me for this broken editor. I even inserted br-tags, which aren't ignored in preview...
Edit2: I see now that this issue has been posted multiple times before.
I