Write a function that returns true if a given number is a palindrome.
MediumProblem Statement
Write a function that returns true if a given number is a palindrome.
Sample Input
num = 121
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Write a function that returns true if a given number is a palindrome.
num = 121
true
Time: 2s · Memory: 256 MB