Ad
  • Custom User Avatar

    Was already approved by someone

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Ranks cannot be changed :-)

  • Custom User Avatar

    Hi, I had the same result. More cicles only removing overflow error on BF interpreter with 30.000 cells memory.

  • Custom User Avatar

    I fixed the interpreter: now it does not allow closing brackets when no loops are open and opening brackets that are not closed.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    you should try to test it. My testing system will recognize it if its actually the case

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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).

  • Custom User Avatar

    The actual solution does not have unbalanced brackets, I just find it weird that it allows them

  • Custom User Avatar

    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.

    Maybe this is the problem. My code generator generates only balanced brackets and my interpreter raises an error when brackets are not well balanced.

  • Custom User Avatar

    @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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...