JavaRush /Java Blog /Random EN /Test task: "Write an Interpreter in the BrainFuck languag...
Roman_kh
Level 33
Харьков

Test task: "Write an Interpreter in the BrainFuck language"

Published in the Random EN group
Hi all! Today I want to share another task that I had at the interview. A task that will test how you can think, how you write code. The task is generally useful for development. Write an interpreter for the BrainFuck programming language . For example, take the source code on BrainFuck : ++++++++++[>+++++++>++++++++++>+++>+<<<<-] >++ .>+.+++++++..+++.>++.<<+++++++++++++++.>.+++. ------.--------.>+.>. typing " Hello World!" » You have 1.5 - 2 hours for this. Forward! That's all... That's the whole condition of the problem. I understand you all very well. In order to understand what to do in general, you need to understand two terms:
  • What is an interpreter?
  • What is BrainFuck?
You will have to deal with this, because. the task is really interesting. For those who will understand, I will say - the difficulty is to build the logic of cycles. To all to whom the task has become useful - we put "+". Solve problems, write code and you will become Java developers! Good luck! See also my other articles: "Image Comparison" Java Test
- Faster, Stronger and Higher! Salaries of Ukrainian programmers.
Success story after 1.5 years from the start of training
Technical questions at the interview.
How to find a job? Sending resumes
Professional burnout. How to resist?
English for IT and for interviews
Pattern Command in your own words.
Singleton pattern in your own words.
How to create an executable jar in Intellij IDEA / how to create jar in IDEA
Help, I need some motivation!
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION