{"id":27543,"date":"2022-12-19T09:19:59","date_gmt":"2022-12-19T17:19:59","guid":{"rendered":"https:\/\/coderpad.io\/?p=27543"},"modified":"2023-06-04T15:28:13","modified_gmt":"2023-06-04T22:28:13","slug":"brainfuck-interpreter-tiny-interview","status":"publish","type":"post","link":"https:\/\/coderpad.io\/blog\/coding-challenges\/brainfuck-interpreter-tiny-interview\/","title":{"rendered":"Code Challenge: Brainfuck Interpreter"},"content":{"rendered":"\n<p>Brainfuck is a very simple programming language with only eight instructions. Despite its simplicity, it\u2019s actually Turing-complete!<\/p>\n\n\n\n<p>This language doesn\u2019t 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.<\/p>\n\n\n\n<p>The program is executed one instruction at a time, from left to right.<\/p>\n\n\n\n<p>Please see the instructions written directly in the pad to proceed.<\/p>\n\n\n<div\n\tclass=\"sandbox-embed responsive-embed  sandbox-embed--full-width\"\n\tstyle=\"padding-top: 85%\"\ndata-block-name=\"coderpad-sandbox-embed\">\n\t<iframe src=\"https:\/\/embed.coderpad.io\/sandbox?question_id=237506&#038;use_question_button\" width=\"640\" height=\"544\" loading=\"lazy\" aria-label=\"Try out the CoderPad sandbox\"><\/iframe>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"markdown-want-to-conduct-interviews-on-this-platform\">Want to conduct interviews on this platform?<\/h2>\n\n\n\n<p>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&nbsp;<a href=\"https:\/\/app.coderpad.io\/register?source=Tiny+Interviews\">this registration link<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brainfuck is a very simple programming language with only eight instructions. Despite its simplicity, it\u2019s actually Turing-complete! Think you have what it takes to complete a Brainfuck interpreter? Solve the challenge in the blog post sandbox.<\/p>\n","protected":false},"author":1,"featured_media":27561,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[22],"tags":[],"persona":[29],"blog-programming-language":[37],"keyword-cluster":[],"class_list":["post-27543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding-challenges"],"acf":[],"_links":{"self":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/27543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/comments?post=27543"}],"version-history":[{"count":31,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/27543\/revisions"}],"predecessor-version":[{"id":33999,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/posts\/27543\/revisions\/33999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media\/27561"}],"wp:attachment":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media?parent=27543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/categories?post=27543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/tags?post=27543"},{"taxonomy":"persona","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/persona?post=27543"},{"taxonomy":"blog-programming-language","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/blog-programming-language?post=27543"},{"taxonomy":"keyword-cluster","embeddable":true,"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/keyword-cluster?post=27543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}