Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Palindrome Number #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Palindrome Number #53

wants to merge 1 commit into from

Conversation

rihib
Copy link
Owner

@rihib rihib commented Dec 21, 2024

Palindrome Numberを解きました。レビューをお願いします。

問題:https://leetcode.com/problems/palindrome-number/
言語:Go

Kitaken0107/GrindEasy#25

*/
func isPalindromeStep1(x int) bool {
var reversed int
tmp := x
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これはもう少しやる気のある変数名でもいい気がするのですが、案はないです。

「10進法で右にシフトしていく変数」ですかねえ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants