Leetcode日记(7)---Reverse Integer

来源:互联网 发布:js字符串拼接 编辑:程序博客网 时间:2024/05/29 09:23
  • cplusplus

抽取位数(x%10)
int x ,i=1(记录数字的位数)

10^(i-1);

int weichuli = x/10; tiqushu = x%10;i++

0 0
原创粉丝点击