Reverse Integer at Yandex
Medium31.5% acceptance
This problem has 37.5% frequency at Yandex.
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 Yandex Questions
Insert Delete GetRandom O(1)MediumAdd Two NumbersMediumPerfect SquaresMediumBasic Calculator IIMediumContinuous Subarray SumMedium
View all Yandex questions