arrow_back Back to Challenges

#9 Palindrome Number

Easy Acceptance 0%
description

Problem Description

Given an integer `x`, return `true` if `x` is a palindrome, and `false` otherwise. An integer is a palindrome when it reads the same forward and backward. For example, `121` is a palindrome while `123` is not.

checklist Constraints

-2^31 <= x <= 2^31 - 1

science Examples

Case #1

In: x = 121
Out: true

Case #2

In: x = -121
Out: false

Case #3

In: x = 10
Out: false

Mastery Tags

Math

Hiring Companies

Adobe Amazon Apple
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude