본문 바로가기

풀어본 Algorithm 문제 정리

[OJ.leetcode] plus-one

https://oj.leetcode.com/problems/plus-one/


Given a non-negative number represented as an array of digits, plus one to the number.

The digits are stored such that the most significant digit is at the head of the list.