HF RL Explorer

Write a Python script /app/topk quantile.py that reads a large text file from stdin and computes streaming…

Write a Python script /app/topk quantile.py that reads a large text file from stdin and computes streaming…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - Read from stdin, a sequence of lines. Each line is either: - A number (integer or float…

The task

**Input format:** - Read from stdin, a sequence of lines. Each line is either: - A number (integer or float, possibly negative, possibly with leading/trailing whitespace) - The special line `--limit N` where N is a positive integer (sets the k for top-k) - The special line `--quantile Q` where Q is a float strictly…

Part of ai-and/termgrade-environments.