linkedin Skip to Main Content
Just announced: CoderPad Play! Engage your team with fun technical challenges.
Back to blog

Code Challenge: Brainfuck Interpreter

Coding Challenges

Brainfuck is a very simple programming language with only eight instructions. Despite its simplicity, it’s actually Turing-complete!

This language doesn’t use any variables: it works with a large array of bytes as its memory, initialized with all zeros. The interpreter also has a pointer that indicates the current memory location. The pointer can be moved left and right, and all operations on memory are performed on the currently pointed cell.

The program is executed one instruction at a time, from left to right.

Please see the instructions written directly in the pad to proceed.

Want to conduct interviews on this platform?

Check out CoderPad : pick any interview question or create your own, then invite your candidate to a shared live-coding session on an IDE like this one. You even get 2 free interviews per month forever using this registration link!