Ad
  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    On your machine it also works incorrectly, but you perform your tests in a wrong way. Test it on your machine again, with two calls one after another, something like this:

    console.info(partsSums([0]);
    console.info(partsSums([20, 20, 19, 16, 10, 0]);
    
  • Custom User Avatar

    Did you try to recreate this scenario locally in your IDE? Does it work the same way on your machine, so you could debug through it?