← Questions
Sum of products over all subarrays
0
I was asked this
No reports yet. Sign in to say where you were asked it.
An online assessment with two problems.
- A simplified text justification: lay words out into lines of a fixed width.
- Given an array, return the sum, over every contiguous subarray, of the product of its elements. Do it in one pass by keeping the sum of products of subarrays that end at the current index.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
