one-line ac solution for python


  • 0
    W

    return str(x)==str(x)[::-1]

    this solution is accepted, but I am confused if it satisfies the 'without extra space' . Maybe someone can answer my questiion?


Log in to reply
 

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