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.
Was already approved by someone
This comment is hidden because it contains spoiler information about the solution
Ranks cannot be changed :-)
Hi, I had the same result. More cicles only removing overflow error on BF interpreter with 30.000 cells memory.
I fixed the interpreter: now it does not allow closing brackets when no loops are open and opening brackets that are not closed.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you should try to test it. My testing system will recognize it if its actually the case
This comment is hidden because it contains spoiler information about the solution
Solved!
There was a bug in my generator. It calls itself recursively to generate the body of the loops and I forgot to pass a parameter in some recursive calls (the default is good for the full program but not for subsequences).
The actual solution does not have unbalanced brackets, I just find it weird that it allows them
Maybe this is the problem. My code generator generates only balanced brackets and my interpreter raises an error when brackets are not well balanced.
@mauro-1 Make sure the specifications of your program match the interpreter used for this kata.
In fact @YurichBRO you should probably be more explicit about the specifications, since it is slightly different from the standard interpreter used on codewars. In particular, that it is infinite in both directions, not just one.
Also, your interpreter is weird in that it allows programs with unbalanced brackets. For some reason an unbalanced opening bracket will simply skip the next instruction, and an unbalanced closing bracket will fall into a loop.
I know that because I'm currently trying to calculate BF_BB(11), but the complexity is through the roof already, it's crazy fast growing. I think you're missing something trivial.
This comment is hidden because it contains spoiler information about the solution
Loading more items...