Running Sum of 1d Array Solutions in GoNumber 1480Difficulty EasyAcceptance 90.3%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func runningSum(nums []int) []int { dp := make([]int, len(nums)+1) dp[0] = 0 for i := 1; i <= len(nums); i++ { dp[i] = dp[i-1] + nums[i-1] } return dp[1:]}package leetcode func runningSum(nums []int) []int { dp := make([]int, len(nums)+1) dp[0] = 0 for i := 1; i <= len(nums); i++ { dp[i] = dp[i-1] + nums[i-1] } return dp[1:] }