โ† Flipkart questions
CodingReported in a candidate post, Jul 2025

Subarray sums via prefix sums

Filed under Flipkart

Given an integer array, answer many queries for the sum of a subarray [l, r] efficiently using prefix sums.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.