Plus One

Problem: Plus One

You are given an integer array digits representing a non-negative integer. Each element is a single digit, and the most significant digit comes first.

Add one to the integer a...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: