Skip to content

Commit c282b99

Browse files
committed
Time: 261 ms (14.30%), Space: 48.5 MB (25.86%) - LeetHub
1 parent b71afd8 commit c282b99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* @param {number} x
3+
* @return {boolean}
4+
*/
5+
6+
var isPalindrome = function(x) {
7+
return parseFloat(x.toString().split('').reverse().join('')) === x;
8+
};
9+

0 commit comments

Comments
 (0)