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 in left-to-right order. The large integer does not contain any leading 0's
Increment the large integer by one and return the resulting array of digits.
Input Format:
The first line contains an integer, (the size of our array). The second line contains space-separated integers that describe array 's elements.
Sample Input 0
3
1 2 3
Sample Output 0
1 2 4
On this page of the site you can watch the video online Leet code Array plus one solved(array basic challenge) with a duration of hours minute second in good quality, which was uploaded by the user Code With Prince 01 January 1970, share the link with friends and acquaintances, this video has already been watched 38 times on youtube and it was liked by 1 viewers. Enjoy your viewing!