Ad
  • Custom User Avatar

    I'm not sure what you mean.

    If you mean as an input (test case) then yes, x's side can be negative. Note the last example in the description (-x = -1).

    If you mean as an answer/result then no, it can not. How would you do that anyways? You are suppose to return a number: the solution (value of x). There is no place for the x (the character 'x'), or the x's side (it is the opposite side that matters). Which is also shown in examples from the description. The answer to the last example I mentioned is 1 not x = 1.

  • Custom User Avatar

    What do you mean? if -x = 1 then x = -1. You must return the value of x.