Data Structures19 sections · 729 units
Open in Course

Quiz: Update Complexity

Sum vs min updates

Check Your Understanding

Why is point update O(√n) for range min but O(1) for range sum?

  1. A.Min requires more memory
  2. B.Sum is commutative but min is not
  3. C.Min might require recomputing the entire block
  4. D.Sum uses less CPU cache
Start the roadmap to answer the quizzes and solve the challenges