Ad
  • Custom User Avatar

    I guess the shortest solution without using scripting engines which I think are cheating, because there was a remark not to use js eval...
    I like it because it is not the usual tokenize, push, eval standard compiler stuff... and works more like humans tend to solve this.

    Actually my test of "- (-1)" does not seem to work, but I guess it is not clearly specified if it is supposed to work...

  • Custom User Avatar

    hey, this is cheating, they disabled eval for js, so that's not the way its meant ;-)