Ad
  • Custom User Avatar
  • Custom User Avatar

    Click on the button that says "Node", and change the version to something

  • Custom User Avatar

    I wouldn't worry about it, the discussion page is at least partly for asking questions. I don't think it's possible to delete a comment once someone has replied to it, besides now that this chain is at the top of the discussion page, someone else with the same question won't have to go searching for an answer.

  • Custom User Avatar

    Your solution will recurse up to 100000 times with some tests in the test suite. This is too much for codewars' node.js stack size. I'm not sure what it is in bytes, but I set up a recursive function that increments a single value and then calls itself and then prints that value upon an exception. With this function, it seems codewars' stack size will allow 15630 recursive calls (at least for my test function) before throwing an exception. I think you'll have to find a non-recursive solution, or at least a solution that doesn't recurse so deeply.