📜  数组的运行总和 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:50.135000             🧑  作者: Mango

代码示例1
Input: nums = [1,1,1,1,1]
Output: [1,2,3,4,5]
Explanation: Running sum is obtained as follows: [1, 1+1, 1+1+1, 1+1+1+1, 1+1+1+1+1].