HF RL Explorer

Write a Python program /app/stream quantile.py that reads a file of numbers and outputs a streaming summary.

Write a Python program /app/stream quantile.py that reads a file of numbers and outputs a streaming summary.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Compute the approximate median and top-3 smallest values over a large file of integers using a…

The task

**Goal:** Compute the approximate median and top-3 smallest values over a large file of integers using a streaming algorithm (fixed-size memory, single pass), with exact tie-breaking and boundary handling.

Part of ai-and/termgrade-environments.