Search
⌘K
Get Premium
Leetcode 66. Plus One
Given an array of digits (most significant first) representing a nonnegative integer, increment the number by one and return the resulting digit array, handling carry propagation across digits and possible length expansion when all digits are 9.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.