Saved from https://leetcode-cn.com/submissions/detail/32794712/
import "strconv" func isPalindrome(x int) bool { xStr := strconv.Itoa(x) for i := 0; i < len(xStr) / 2; i++ { if xStr[i] != xStr[len(xStr)-1-i] { return false } } return true }