---
title: "Discussion on \"1480. Running Sum of 1d Array\" | Hashnode"
description: "Discussion on \"1480. Running Sum of 1d Array\". Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]).\nReturn the running sum of nums.\nExample 1:\nInput: nums = [1,2,3,4]\nOutput: [1,3,6,10]\nExplanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1..."
url: "https://hashnode.com/posts/1480-running-sum-of-1d-array/63d2695a20078b76bc30e8f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [1480\. Running Sum of 1d Array](https://akshatjain.hashnode.dev/1480-running-sum-of-1d-array?utm_source=hashnode&utm_medium=feed)

Given an array nums. We define a running sum of an array as runningSum\[i\] = sum(nums\[0\]…nums\[i\]). Return the running sum of nums. Example 1: Input: nums = \[1,2,3,4\] Output: \[1,3,6,10\] Explanation: Running sum is obtained as follows: \[1, 1+2, 1+2+3, 1...

Jan 26, 2023 · 1 min read · akshatjain.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#leetcode75](https://hashnode.com/tag/leetcode75)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Akshat Kumar Jain](https://hashnode.com/@Akshatj)

@Akshatj

  
[View profile](https://hashnode.com/@Akshatj)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
