Skip to content

Commit ddbf044

Browse files
committed
Runtime: 102 ms (Top 97.93%) | Memory: 45.7 MB (Top 99.22%)
1 parent 2988580 commit ddbf044

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/A/Add to Array-Form of Integer/Add to Array-Form of Integer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 102 ms (Top 97.93%) | Memory: 45.7 MB (Top 99.22%)
12
var addToArrayForm = function(num, k) {
23
const length = num.length;
34
let digit = 0, index = length-1;
@@ -16,4 +17,4 @@ var addToArrayForm = function(num, k) {
1617
}
1718
if(digit) num.unshift(digit);
1819
return num;
19-
};
20+
};

0 commit comments

Comments
 (0)