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.
COBOL translation.
Damn, I didn't realize that "matching" doesn't mean "the next one you find", my bad then. Thanks for the quick reply.
So why are you still executing things inside this first
[
? The matching]
is the last character, so your pointer should go past it immediately.From C++ test cases:
[[]*>*>*>]
,000
is for some reason supposed to return 000, how???[
- jump past matching]
, since everything is zero anyway*>
- flip the first bit and go to the second*>
- flip the second and go to the third*>
- flip the third, go out of bounds and terminate since we're out of bounds.We flipped all three bits, the tape is now 111. My solution passes everything except for this one, even random tests.