Create a script /app/apply delta that applies a delta file to an original file, producing a modified file.
Create a script /app/apply delta that applies a delta file to an original file, producing a modified file.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Correctly reconstruct a modified file from an original file and a delta file, following the exact…
The task
**Goal:** Correctly reconstruct a modified file from an original file and a delta file, following the exact specification below. The delta file describes insertions, deletions, and replacements relative to the original. Your script must handle all edge cases precisely.
Part of ai-and/termgrade-environments.