One line 212ms javascript solution


  • 0
    N
    /**
     * @param {string} s
     * @return {boolean}
     */
    var isNumber = function(s) {
        return !!s.trim().length && !isNaN(+s);
    };

Log in to reply
 

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