Bootloader Loop Detection
Anthropic interview questions · Medium · Coding round · reported 3× · 5 tests
Implement a bootloader simulator for a tiny instruction set:
acc n: addnto the accumulator, advance to the next instruction.next n: ignoren, advance to the next instruction.jump n: addnto the program counter.
Interface
Run your code with Ctrl+Enter to see results.