is_palindrome_number(n) that returns True if the non-negative integer n reads the same forwards and backwards as a number, computed by reversing its digits with a while loop using arithmetic (% 10, // 10) — no string conversion.is_palindrome_number(121)
True
Reversing 121 gives 121.
is_palindrome_number(123)
False
Reversing 123 gives 321, which differs.
Build the reversed number digit by digit: `reversed_n = reversed_n * 10 + n % 10`.
Compare the fully reversed number to a saved copy of the original.