Problem 9 · Easy

Palindrome Number

Decide whether an integer reads the same forwards and backwards without converting it to a string. The visual reverses the second half of the digits and compares the two halves.

Open the interactive visualisation