Palindrome Number
Easy · Math & Number Theory · about 10 minutes
Asked at Google, Amazon, Meta, Bloomberg, Microsoft, Qualcomm, Broadcom, Micron, Rubrik, Glean.
Decide whether the digits of the integer x are the same read left to right and right to left (a minus sign means it can't be). Can you do it without turning x into a string?