[Toggle Comments]
package main import ( "fmt" ) func main() { number := -1213121 fmt.Println(isPalindromeStr(number)) fmt.Println(isPalindromeRevert(number)) number = 1213121 fmt.Println(isPalindromeStr(number)) fmt.Println(isPalindromeRevert(number)) number = 123321 fmt.Println(isPalindromeStr(number)) fmt.Println(isPalindromeRevert(number)) } /* * \ * \\, * \\\,^,.,,. Zero to Hero * ,;7~((\))`;;,, <zerotohero.dev> * ,(@') ;)`))\;;', stay up to date, be curious: learn * ) . ),(( ))\;, * /;`,,/7),)) )) )\,, * (& )` (,((,((;( ))\, */