class Solution {
public int[] runningSum(int[] nums) {
for(int idx = 1; idx<nums.length; idx++) {
nums[idx] = nums[idx-1] + nums[idx];
}
return nums;
}
}
Yes. I found an available transcript of the video and summarized it simply. The video is “How To Become Red Coder? (codeforces.com)” by Err...
No comments:
Post a Comment