Javascript Solution


  • 0
    L

    call function toString()

    /**
     * @param {number} num
     * @return {string}
     */
    var convertToBase7 = function(num) {
        return num.toString(7);
    };
    

Log in to reply
 

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