Fix Bootloader Program by Swapping One Instruction to Avoid Loop

Problem: Fix a Bootloader Program by Swapping One Instruction

You are given a line-by-line instruction file (program). Each line contains an instruction and an integer value. The program start...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: