Plus One
Given a large integer represented as an integer array digits, increment the large integer by one and return the resulting array of digits.
Plus One

Given a large integer represented as an integer array digits, increment the large integer by one and return the resulting array of digits.

Example 1:
Input: [1,2,3]
Output: [1,2,4]
Input
arr =[1,2,3]

Add one

Carry: 1

i102132

123 = 123

Position: 2
Carry: 1
Variables
No variables to display
DepthFunction Call
Stack empty
0/1