Ad
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    Well, the answer is directly in the logs: "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory".

    You hit the recursion limit and crashed the program. You won't go far with using recursion for this task.

  • Custom User Avatar

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

  • Custom User Avatar

    How could we tell? We can't see your code.

    But it's possible that your code is too slow with your method.

  • Custom User Avatar

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