-
LeetCode - 1480. Running Sum of 1d Array [Kotlin]Algorithms/- LeetCode 2022. 8. 2. 10:30
- 문제 링크 : 1480. Running Sum of 1d Array
정답 ( Solution )
class Solution { fun runningSum(nums: IntArray): IntArray { for(i in 1 until nums.size){ nums[i] += nums[i-1] } return nums } }
반응형