Given an integer array nums, return an array ans of the same length where each element ans[i] equals the sum of nums[0] through nums[i] (inclusive). This is the running prefix sum of nums.
Constraints:
nums.length
nums[i]
Given an integer array nums, return an array ans of the same length where each element ans[i] equals the sum of nums[0] through nums[i] (inclusive). This is the running prefix sum of nums.
Constraints:
nums.length
nums[i]