JS solution


  • 0
    var isPalindrome = function(x) {
        if (x < 0) return false;
        return x === parseInt(x.toString().split('').reverse().join(''), 10);
    };
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.