7. Reverse Integer整数反转 (Easy)
Given a 32-bit signed integer, reverse digits of an integer.(将一个32位的有符号的整数的进行反转,注意:反转后可能会溢出,如果溢出,则返回0) Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume…