Ad
  • Custom User Avatar

    A very interesting kata!!

  • Custom User Avatar

    Thanks!
    I found a mistake. Sometimes there are more than 1 space.

  • Custom User Avatar

    The log means your code returns NaN, but should return -158.

    There are much more random tests than fixed tests.

  • Custom User Avatar

    Why don't pass? Why expected NaN?

    Did not work with x + 143 = + 111 - 82 - 44 : expected NaN to equal -158

    If x = -158, then from left and right side would be -15.

    It pass all test except random (javascript).

    Tested again:
    Did not work with x + 97 + 134 + 8 + 105 = - 67 + 72 : expected NaN to equal -339
    The same error.

  • Custom User Avatar

    Very fast function!! You can try yourself!!