Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 426 Bytes

File metadata and controls

14 lines (11 loc) · 426 Bytes

Problem 4: Mirror Constraint (Palindrome Number)

Problem Statement

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.

Input Format

  • An integer x.

Example

Input: x = 121
Output: True Input: x = -121
Output: False (reads 121- backward)