Dynamic Programming21 sections · 916 units
Open in Course

Quiz: Range Query Complexity

Understanding the tradeoff

Check Your Understanding

For m range sum queries on an array of size n, what is the total complexity using prefix sums?

  1. A.O(m log n)
  2. B.O(n + m)
  3. C.O(n^2)
  4. D.O(n * m)
Start the roadmap to answer the quizzes and solve the challenges