摘要: 给定一个范围为 32 位 int 的整数,将其颠倒。 例 1: 输入: 123 输出: 321 例 2: 输入: -123 输出: -321 例 3: 输入: 120 输出: 21 注意: 假设我们的环境只能处理 32 位 int 范围内的整数。根据这个假设,如果颠倒后的结果超过这个范围,则返回 0 阅读全文
posted @ 2018-04-04 21:49 月夜_1 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/lcamisak/article/details/79358060 阅读全文
posted @ 2018-04-04 11:04 月夜_1 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 在线编译网站: http://www.dooccn.com/cpp/ 刷题: https://leetcode.com/ https://leetcode-cn.com/ 阅读全文
posted @ 2018-04-04 09:58 月夜_1 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 引用:https://blog.csdn.net/smf0504/article/details/51315835 https://blog.csdn.net/ting_junhui/article/details/73770838 return语句用于结束当前正在执行的函数,并将控制权返回给调用此 阅读全文
posted @ 2018-04-04 09:40 月夜_1 阅读(4508) 评论(0) 推荐(0) 编辑