Streaming Cluster Statistics

Problem

Implement a stream processor that stores data in clusters and supports querying the maximum value of each cluster. Extend it to support median queries.

Reconstruction note: The post do...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: