← Questions

Sum of products over all subarrays

0
PikaCodingLast asked Oct 2025

A coding interview question asked in Pika's online assessment, last asked Oct 2025. It tests arrays, dynamic programming and math.

Two problems in one timed assessment: a simple text formatter, and the sum of products over every contiguous subarray. Unless you agree on a different interface with the interviewer, assume: Constraints: 1 <= width <= 1000, up to 10^4…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

arrays · dynamic programming · math

Your code and the AI tutor open when you unlock this question.