본문 바로가기

풀어본 Algorithm 문제 정리

[OJ.leetcode] reverse-integer

https://oj.leetcode.com/problems/reverse-integer/ 

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321