会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Figure at a Window
管理
2022年3月21日
LeetCode 7. 整数反转
摘要: 题意 整数反转, 即个位变最高位, 最高位变个位; 同时, 翻转后溢出则不考虑 模拟样例 123 > 321 2147483647 --> 0; 翻转后溢出了 代码 class Solution { public: int reverse(int x) { int ans = 0; while (x
阅读全文
posted @ 2022-03-21 21:53 Figure_at_a_Window
阅读(26)
评论(0)
推荐(0)