leetcode腾讯精选50题007

题目:https://leetcode-cn.com/problems/reverse-integer/ 代码: class Solution { public: int reverse(int x) { //当前值 int rev = 0; //被弹出的值 int pop = 0; while(x!=0) { int pop = x%10; x = x/10; i
相关文章
相关标签/搜索