HF RL Explorer

Implement a command-line tool /app/topk that reads a large unsorted file of integers (one per line) and…

Implement a command-line tool /app/topk that reads a large unsorted file of integers (one per line) and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool receives exactly two arguments: <file path <k - <file path : absolute path to a…

The task

**Input contract:** - The tool receives exactly two arguments: `<file_path> <k>` - `<file_path>`: absolute path to a UTF-8 encoded text file - `<k>`: a positive integer (1-indexed, so k=1 means the absolute maximum unique value) - Each line in the file contains a single integer, possibly with leading/trailing…

Part of ai-and/termgrade-environments.