/**
* Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
*/
一个Integer 类型的数num % 10 ,若num > 10 得到的是num 的个位数,num < 10 得到的是num 本身的值。

/**
* Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
*/
一个Integer 类型的数num % 10 ,若num > 10 得到的是num 的个位数,num < 10 得到的是num 本身的值。
本文标题:Easy_ReverseInteger_07
本文链接:https://www.haomeiwen.com/subject/nhaqdxtx.html
网友评论