Ad
  • Custom User Avatar

    And it should not, according to the condition of the task

  • Default User Avatar

    The minus sign should not confuse you in any way. It has no effect on the algorithm.

  • Custom User Avatar

    Negative numbers do not need special attention, they need to be included in the output string, including their sign. The description includes (at least now) an example. Adding an example in sample tests in all languages would be a good suggestion (some languages don't like JS and CoffeeScript, but most others do), though with the current description this is not an issue anymore. Thanks to Chrono79 for completing the description. No reason to add parentheses.

  • Custom User Avatar

    Added to the kata's description. Parentheses were never mentioned tho.