Preprocess Immutable Inclusive Array Range Sums
Company: Google
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Preprocess Immutable Inclusive Array Range Sums. Implement NumArray(vector int & nums) and sumRange(left,right). The array remains unchanged after construction; each query returns the sum over the zero-based i