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

solution2.5.2.8.scala provided #76

Merged
merged 5 commits into from
Dec 1, 2024
Merged

Conversation

andreas-roehler
Copy link
Contributor

No description provided.

Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
assert(result == expected)

def isPalindrome(n: Int): Boolean = {
n.toString.reverse.toInt == n
Copy link
Owner

Choose a reason for hiding this comment

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

Here, I would expect you to call revDigits to get the reversed digits, rather than toString.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I'm on it.

Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
@winitzki winitzki merged commit 0ea97f1 into winitzki:master Dec 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants