← Amazon questions

Range sum query

Filed under Amazon · Also reported at AQR Capital, Google

Given an array, perform range sum queries efficiently. Provide a structure that supports updates and range sum queries in O(log n) time.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.