Back to QuestionsPractice with This Question
Range Sum Query - Immutable
93.7K views•Asked 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.