LeetCode 66: Plus One — Step-by-Step Visual Trace
Easy — Array | Math | Simulation
The Problem
Given a non-empty array of decimal digits representing a non-negative integer, increment the integer by one and return the resulting digits as an array.
Approach
Iterate through the digits array from right...
blog.tracelit.dev1 min read