return (-1 if x < 0 else 1) * int(str(abs(x))[::-1])
[::-1] What's that mean? It is C++?
you got a complier error though I don't know why.
and my solution similar to yours ran into the same problem.
python, not C++
This doesn't account for 32bit integer overflows
your solution is overflow
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.