Reverse Integer

1 min read
๐ง Problem
Reverse Integer
Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0. Assume the environment does not allow you to store 64-bit integers (signed or unsigned).
๐ท๏ธ Tags
Math
๐ Difficulty
Medium
โ
Success Rate: 26.7%
๐ฅ Submissions: 7,589,410
๐ Accepted: 2,022,695
โค๏ธ Reactions
๐ Likes: 6971
๐ Dislikes: 9596
๐ก Hints
๐ Similar Questions
- String to Integer (atoi)
- Reverse Bits
- A Number After a Double Reversal
Leetcode Link : Reverse Integer
0
Subscribe to my newsletter
Read articles from RedAurther directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
