文章目录 1:Reverse Integer 1:Reverse Integer 题目描述: 输入:红圈的范围 输出:整数的翻转 分析: 考察,int类型整数的取值范围 样例输入:1534236469,翻转后9*******5时,在乘以10得90多亿超出20多亿的int范围 解决办法:在乘以10之前判断,超过了就返回0,break掉 private static int reverse(int x) { int num = 0; int yu;