Goal: Write a Python script topk quantile.py that reads a potentially large file of numeric records and…
Goal: Write a Python script topk quantile.py that reads a potentially large file of numeric records and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input file: one ASCII-encoded text record per line. Each valid record is a signed integer…
The task
Exact I/O contract: - Input file: one ASCII-encoded text record per line. Each valid record is a signed integer between -10^12 and 10^12 inclusive, optionally surrounded by any amount of whitespace (space, tab). There may be empty lines (0 characters) or lines containing only whitespace; these must be treated as…
Part of ai-and/termgrade-environments.