Search⌘ K
AI Features

Range Sum Query - Immutable

Given an integer array, Range Sum Query - Immutable asks you to answer repeated queries by returning the sum of all elements between two inclusive indices; values may be negative.

Statement

You are given an integer array, nums, and you need to handle multiple queries of the following type: ...