Back to Questions

Range Sum Query - Immutable

93.7K viewsAsked at Microsoft
Easy

Question Explain

Given an integer array `nums`, handle multiple queries of the following type: Calculate the sum of elements of `nums` between indices $i$ and $j$ inclusive. Use a Pre-calculated Sum array.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question