Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 01ac414

Browse files
Update README.md
1 parent a7569c9 commit 01ac414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Solution:
121121
```python
122122
class Solution:
123123
def isPalindrome(self, x: int) -> bool:
124-
return str(x) == str(x)[::-1]
124+
return (k:=str(x)) == k[::-1]
125125
```
126126
不使用字符串的进阶解法:
127127

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /