Reverse Integer at Google
Medium31.5% acceptance
This problem has 62.5% frequency at Google.
Problem Description
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).**
Read full problem and hintsTopics
Also asked at 25 companies
More Google Questions
Add Two NumbersMediumPalindrome NumberEasyRoman to IntegerEasyClimbing StairsEasyAdd Two IntegersEasy
View all Google questions