Data Structures & AlgorithmsVery hardICPC regional · data structures

Problem: What is the purpose of a 'segment tree beats' structure?

  1. A. Finding the median of a stream
  2. B. Counting bits
  3. C. Range chmin and range sum with amortised bounds
  4. D. Sorting strings

Correct answer: C. Range chmin and range sum with amortised bounds

Segment tree beats handles range min-updates efficiently by tracking the top two values in each node.

More Coding Interview Problems questions

Exams that ask this topic