Why are negative numbers not palindromes?


  • 1
    H

    I think being nonnegative is a requirement of palindromes in this question. If so, I feel that it should be specified, since it does not seem intuitive to me...


  • 0
    J

    It's not a black and white answer. The best strategy is to discuss it with your interviewer, which will demonstrates your ability to clarify ambiguity.


Log in to reply
 

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