HF RL Explorer

Write a terminal command or script that reads a binary file /data/input.bin and writes its decoded content…

Write a terminal command or script that reads a binary file /data/input.bin and writes its decoded content…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The entire input file is a sequence of top-level records, packed back-to-back with no separator. The output…

The task

The entire input file is a sequence of top-level records, packed back-to-back with no separator. The output must be a JSON array containing one JSON object per top-level record in order. Each object has the keys "type" (string: "int", "string", or "list"), "value", and optionally "length" (the decoded decimal integer…

Part of ai-and/termgrade-environments.