Write a Python script /app/topk quantile.py that reads a large text file from STDIN and computes an exact…
Write a Python script /app/topk quantile.py that reads a large text file from STDIN and computes an exact…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (STDIN): - Each line is either a positive integer (e.g., 42 ), a blank line (empty string), a…
The task
**Input format (STDIN):** - Each line is either a positive integer (e.g., `42`), a blank line (empty string), a line with only whitespace, or a line with a non-integer token (e.g., `abc`, `12x`, `-5`, ` 100 `, `3.14`). - Lines are NOT guaranteed to be sorted. - The file may be large (not all numbers fit in memory at…
Part of ai-and/termgrade-environments.