📜  运行一维数组的总和 - Java 代码示例

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

代码示例2
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].