9. Palindrome Number
brute force: convert the integer to a string
time: O(n/2)
space: O(1)
Math
time: O(logn), log base is 10
space: O(1)
Last updated
time: O(n/2)
space: O(1)
time: O(logn), log base is 10
space: O(1)
Last updated