Skip to content

Commit

Permalink
feat: 添加回文数提示信息及代码格式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
cloaks committed Jan 15, 2025
1 parent 1b14f8b commit 7aeb8f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/blog/posts/2025/1/15.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ comments: true

# 回文十进制数

> 如果把某个数的各个数字按相反的顺序排列,得到的数和原来的数相同,则这个数就是“回文数”。譬如 123454321 就是一个回文数。
!!! tip
如果把某个数的各个数字按相反的顺序排列,得到的数和原来的数相同,则这个数就是“回文数”。譬如 123454321 就是一个回文数。

**问题**: 求用十进制、二进制、八进制表示都是回文数的所有数字中,大于十进制数 10 的最小值。

Expand All @@ -23,7 +24,7 @@ comments: true

## 示例代码

```go "is_palindrome_test.go"
```go title="is_palindrome_test.go"
package golang

import (
Expand Down

0 comments on commit 7aeb8f1

Please sign in to comment.