Palindrome Number Solutions in GoNumber 9Difficulty EasyAcceptance 48.5%Link LeetCodeOther languages C++, JavaSolutionsGo solution by halfrost/LeetCode-Gopackage leetcode import "strconv" func isPalindrome(x int) bool { if x < 0 { return false } if x < 10 { return true } s := strconv.Itoa(x) length := len(s) for i := 0; i <= length/2; i++ { if s[i] != s[length-1-i] { return false } } return true}package leetcode import "strconv" func isPalindrome(x int) bool { if x < 0 { return false } if x < 10 { return true } s := strconv.Itoa(x) length := len(s) for i := 0; i <= length/2; i++ { if s[i] != s[length-1-i] { return false } } return true }