HF RL Explorer

Implement a command-line tool that reads a large unsorted file of floating-point numbers (one per line) and…

Implement a command-line tool that reads a large unsorted file of floating-point numbers (one per line) and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - First argument: path to a text file containing one decimal number per line - Second…

The task

**Input contract:** - First argument: path to a text file containing one decimal number per line - Second argument: integer K (K ≥ 1) for the number of top elements to return - The input file may contain: empty lines, lines with only whitespace, trailing newlines or no trailing newline, numbers with leading/trailing…

Part of ai-and/termgrade-environments.