Ad
  • Default User Avatar

    I've changed the tests a bit try now.

  • Default User Avatar

    My apologies for not having replied yet,could you please clarify how many tests you pass before the error occurs.

  • Custom User Avatar

    Please use three backticks to mark code:

    ```
    your code here
    ```
    

    Otherwise it's kind of hard to read your comments. That being said, the JavaScript tests have been changed lately. Did you try again? Also, if you're completely stuck, you can add your current solution as a spoiler in a comment.

  • Custom User Avatar

    It seems to me that your code has both problems in computing the right numbers and giving it the right sign (+/-); for the latter, see my reply below to Neoslide comment.