leetle

23. Validate Palindromic Number

84%

Write a function solve that checks whether an integer is a palindrome without converting it to a string. A palindrome is a number that reads the same backward as forward.

Example: Input: 121 Output: True

Make sure you return your solution, don't print!

def solve(num):
    pass