Leetcode – Plus One

Name: Plus OneDifficulty: EasyDescription: Increment the large integer by one and return the resulting array of digits. Example: Input: digits = [4,3,2,1] Output: [4,3,2,2] Explanation: The array represents the integer 4321. Incrementing by one gives 4321 + 1 = 4322. Thus, the result should be [4,3,2,2]. Feels like I hacked this one, I also modified […]