Available question text
Compute the prefix (running) sum array where runningSum[i] = sum(nums[0..i]), i.e., each output element is the cumulative total up to that index. This is a straightforward one-pass O(n) accumulation over the input array.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1480. Running Sum of 1d Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source