The IDE is broken because this got accepted with full marks


int Solution::isPalindrome(int A) {
int n=A;
int remainder =0;
remainder = (remainder*10)+n%10;
if(remainder == A)
return 1;
else return 0;


I see nothing wrong with this.


You should only get full marks for doing this I’m constant space


Integer variables don’t count towards space complexity.