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.
To help clarify the problem, here's some tips:
(1): For "MOV x y", be careful about this information: "y is a constant value ! or ! a register) ".
(2): For "JNZ x y", similar information goes to both x and y here.
(3): Don't print anything inside the loop, otherwise you would fail to pass complex tests due to the max buffer limitation.
Comment from @victordfb saves me a lot time debugging! You're brilliant!
BTW, Exit139 bothers me all the time in CW. I think this error message might be equal to "segmentation error". eg. trying to access a empty vector.
So many interesting tricks in this solution. Learned a lot from it. Thank you!
I think this one is better than the current best solution, since it's O(n), whereas the best solution is O(n^2). Am I correct?