Exercises/#72 Palindrome Number
#72

Palindrome Number

EasyπŸ”’ Math & Numbers
40 XP

Problem

Given an integer x, return true if x is a palindrome (reads the same forward and backward). Negative numbers are not palindromes.

Examples

Input: x=121
Output: true

Input: x=-121
Output: false

Input: x=10
Output: false
math
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

72 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features