Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
A very interesting kata!!
Thanks!
I found a mistake. Sometimes there are more than 1 space.
The log means your code returns NaN, but should return -158.
There are much more random tests than fixed tests.
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.
Very fast function!! You can try yourself!!