Ad
  • Default 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.

  • Custom User Avatar

    must the x's side be positive, EG: -x = 1
    or must it be like this: x = -1
    please help me thanks bye

  • Custom User Avatar

    i think it defeats the purpose of the kata.
    you arent writing a code that does the job, you're just predefining the answers to a situation.