Skip to content

Reverse Integer - Easy Problem #1

@AkP2809

Description

@AkP2809

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).

Example 1:
Input: x = 123
Output: 321

Example 2:
Input: x = -123
Output: -321

How to name your file?

Go to folder : C++/Java/Py
Give today's date
Take your GitHUB username id like "AkP2809", etc which you have.
File extension = .cpp/.java/.py in this issue.
Combine all 3 to get your file name : Problem Name + "_" + Username + File Extension, ex. "ReverseInteger_AkP2809.cpp".
Create this file in above mentioned folder only "/C++/".

This will ensure no file will be conflict and any number of contributors can work on the same issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions