Leetcode Algorithms -- Plus One
Plus One (Easy)
Description
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.
Analysis
简单模拟.字符串模拟+1操作。
My Solution
1 | //C++ |