Tap here to switch tabs
Problem
Submissions

Problem: Sum of Number and Its Reverse

med
30 min
Try to solve the 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.

Note: The reverse of an integer can contain leading zeros (for example, reversing 140140 yields 041041, which equals 4141).

Constraints:

  • 0≤0 \leq num ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Sum of Number and Its Reverse

med
30 min
Try to solve the 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.

Note: The reverse of an integer can contain leading zeros (for example, reversing 140140 yields 041041, which equals 4141).

Constraints:

  • 0≤0 \leq num ≤105\leq 10^5