Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

leetcode solution problem 66 plus one

/**
 * @param {number[]} digits
 * @return {number[]}
 */
var plusOne = function(digits) {
    let digits2 = BigInt(digits.join(''))
    ++digits2
    digits2 = digits2.toString().split('') 
    return digits2
};
Source by exploretech.dev #
 
PREVIOUS NEXT
Tagged: #leetcode #solution #problem
ADD COMMENT
Topic
Name
6+1 =