Title: leetcode7-整数反转 | snmlm
Open Graph Title: leetcode7-整数反转
Description: 题目描述给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。 如果反转后整数超过 32 位的有符号整数的范围 [−231, 231 − 1] ,就返回 0。 假设环境不允许存储 64 位整数(有符号或无符号)。 示例 1: 12输入:x = 123输出:321 示例 2: 12输入:x = -123输出:-321 示例 3: 12输入:x = 120输出:21 示例
Open Graph Description: 题目描述给你一个 32 位的有符号整数 x ,返回将 x 中的数字部分反转后的结果。 如果反转后整数超过 32 位的有符号整数的范围 [−231, 231 − 1] ,就返回 0。 假设环境不允许存储 64 位整数(有符号或无符号)。 示例 1: 12输入:x = 123输出:321 示例 2: 12输入:x = -123输出:-321 示例 3: 12输入:x = 120输出:21 示例
Keywords:
Mail addresses
undefined
Opengraph URL: https://snmlm.github.io/algorithm/leetcode/leetcode_7/
Generator: Hexo 5.1.1
Domain: snmlm.github.io
| None | no-siteapp |
| author | snmlm |
| copyright | snmlm |
| format-detection | telephone=no |
| theme-color | #ffffff |
| og:type | article |
| og:site_name | snmlm |
| og:image | https://snmlm.github.io/img/head.gif |
| article:published_time | 2023-01-15T16:00:00.000Z |
| article:modified_time | 2023-01-16T01:25:41.476Z |
| twitter:card | summary |
Links:
Viewport: width=device-width,initial-scale=1