← Back
00:00

Bootloader Loop Detection

Anthropic interview questions · Medium · Coding round · reported 3× · 5 tests

Implement a bootloader simulator for a tiny instruction set:

  • acc n: add n to the accumulator, advance to the next instruction.
  • next n: ignore n, advance to the next instruction.
  • jump n: add n to the program counter.

Interface

Idle