Skip to content

Commit

Permalink
9. Palindrome Number
Browse files Browse the repository at this point in the history
  • Loading branch information
SE-MahmoudAbdelaal committed May 20, 2024
1 parent b445d0b commit ef6ff59
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions leetcode/easy/PalindromeNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ public boolean isPalindrome(int x) {
int numberofpow=s.length()-2;
int firstDigit=(int)Math.pow(div, numberofpow);
int lastDigit=x%10;





if (firstDigit==lastDigit) {
return true;

Expand Down

0 comments on commit ef6ff59

Please sign in to comment.