#66

Plus One

easy· Math & Geometryruns: 0

You are given a large integer represented as an integer array digits, where each digits[i] is the ith digit of the integer. The digits are ordered from most significant to least significant, and the integer does not contain any leading zero. Increment the large integer by one and return the resulting array of digits.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.