Write a command-line tool stream topk that reads a large UTF‑8 text file where each line is a JSON object…
Write a command-line tool stream topk that reads a large UTF‑8 text file where each line is a JSON object…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : produce the exact top‑k elements from the input file.
The task
**Goal**: produce the exact top‑k elements from the input file.
Part of ai-and/termgrade-environments.