Skip to content

a 'Palindrome Number' issue. #7

@klioen

Description

@klioen

https://github.com/mengli/leetcode/blob/master/PalindromeNumber.java#L26

Your output is error when the input is 1021 or 10021.
we should change it to:

while(x != 0) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions