LeetCode --- 2119. A Number After a Double Reversal 解题报告

Question:

Reversing an integer means to reverse all its digits.

  • For example, reversing 2021 gives 1202. Reversing 12300 gives 321 as the leading zeros are not retained.

Given an integer numreverse num to get reversed1then reverse reversed1 to get reversed2. Return true if reversed2 equals num. Otherwise return false.

Example 1:

Input: num = 526
Output: true
Explanation: Reverse num to get 625, then reverse 625 to get 526, which equals num.

Example 2:

Input: num = 1800
Output: false
Explanation: Reverse n

相关推荐

  1. LeetCode --- 2129. Capitalize the Title 解题报告

    2024-07-11 13:40:05       18 阅读
  2. LeetCode --- 2119. A Number After a Double Reversal 解题报告

    2024-07-11 13:40:05       19 阅读
  3. LeetCode --- 2103. Rings and Rods 解题报告

    2024-07-11 13:40:05       17 阅读
  4. LeetCode --- 2000. Reverse Prefix of Word 解题报告

    2024-07-11 13:40:05       61 阅读
  5. LeetCode --- 2032. Two Out of Three 解题报告

    2024-07-11 13:40:05       44 阅读
  6. LeetCode --- 2057. Smallest Index With Equal Value 解题报告

    2024-07-11 13:40:05       35 阅读
  7. LeetCode --- 2073. Time Needed to Buy Tickets 解题报告

    2024-07-11 13:40:05       22 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-11 13:40:05       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-11 13:40:05       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-11 13:40:05       57 阅读
  4. Python语言-面向对象

    2024-07-11 13:40:05       68 阅读

热门阅读

  1. sublime使用

    2024-07-11 13:40:05       21 阅读
  2. Linux Conda简介

    2024-07-11 13:40:05       21 阅读
  3. 数据结构笔记之线索二叉树找前驱后继

    2024-07-11 13:40:05       21 阅读
  4. Mybatis之动态sql、缓存、分页、配置数据源

    2024-07-11 13:40:05       17 阅读
  5. python的入门知识(下)

    2024-07-11 13:40:05       23 阅读
  6. 网络协议 | 计算机网络基础学习笔记

    2024-07-11 13:40:05       18 阅读
  7. 【Axure高保真原型】输入表单——回车键切换

    2024-07-11 13:40:05       21 阅读
  8. c与c++ 常用的字符与字符串处理的接口介绍:

    2024-07-11 13:40:05       25 阅读