Skip to content

Practice Sum of Number and Its Reverse

Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.

Medium#2443
LeetCode Problem

Sum of Number and Its Reverse

Problem Statement

Given a non-negative integer num, return true if num can be expressed as the sum of any non-negative integer and its reverse, or false otherwise.

Source: Sum of Number and Its Reverse on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
num = 443
Output
true

# Example 2

Input
num = 63
Output
false

# Example 3

Input
num = 181
Output
true

Constraints

0 <= num <= 10^5

Related LeetCode Problems

Practice more problems similar to Sum of Number and Its Reverse.

Review your practice with PhantomCodeAI

After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.