Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c2fc63

Browse files
committed
feat: 0009.leetcode-isPalindrome-回文数
1 parent c3a641c commit 9c2fc63

File tree

1 file changed

+18
-0
lines changed
  • 0009.leetcode-isPalindrome-回文数

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// 判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
2+
// 输入: 121
3+
// 输出: true
4+
5+
package main
6+
7+
import (
8+
"fmt"
9+
)
10+
11+
func main() {
12+
b := isPalindrome(121)
13+
fmt.Println("b = ", b)
14+
}
15+
16+
func isPalindrome(x int) bool {
17+
18+
}

0 commit comments

Comments
 (0)