I'm curious about the input with negative integer


  • 0
    O

    From the problem description, input with negative integer seems to be possible.
    ex) -3-1, 2*-3-4*5
    But it turns out that all testcases use positive integer.
    Even the test program throws exception when I put '-3-1' as an input.
    And most of the solutions here doesn't consider negative input.
    I think the input space needs to be specified in the problem description.
    Any opinions? Please correct me if i'm wrong.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.