cs.thefarshad
easy Arrays & Math

Plus One

`digits` represents a non-negative integer, one digit per element (most significant first). Add one to it and return the resulting digits. Example: [1, 2, 3] → [1, 2, 4]; [9, 9] → [1, 0, 0].

runs in your browser