Back to Question

Range Sum Query - Immutable

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

Click "Start Speaking" and answer the question naturally.