Pages

Friday, February 6, 2026

1480. Running Sum of 1d Array - leetcode solution

 class Solution {

    public int[] runningSum(int[] nums) {
        for(int idx = 1; idx<nums.length; idx++) {
            nums[idx] = nums[idx-1] + nums[idx];

        }

        return nums;
    }
}

No comments:

Post a Comment

how to become red on codeforces by Errichto Algorithms | explained simply in a blog

 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...