Skip to content

Missing Test Case - 9. Palindrome Number #32214

@CODSOFT-ai

Description

@CODSOFT-ai

LeetCode Username

Abhishek Singh

Problem Number, Title, and Link

https://leetcode.com/problems/palindrome-number

Bug Category

Problem examples

Bug Description

no bug

Language Used for Code

C

Code used for Submit/Run operation

bool isPalindrome(int x) {
    
     if (x<0)
    return false;
    int org = x;
    long rev=0;
     while(x>0)
     {
        int dig= x%10;
        rev= rev*10+dig;
        x/=10;
     }
     return org== rev;
}

Expected behavior

palindrome check

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions