Problem Description

Task: return prefix sums where pref[i] = sum of a[0..i].

Input Format

Java method

Output Format

Return value

Constraints

Use long for sums.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next