Problem 30 is currently impossible in brainfuck

Back to General discussions forum

KingSweat     2026-04-14 11:01:07
User avatar

Problem #30, Reverse String is currently impossible due to not terminating input with a null character '\0'.

This causes you to be unable to take in all input due to it never telling you when to stop collecting input.

For example:

,[>,]<[.<]

My solution which works for reversing strings and has worked on other challenge sites. This cannot work here due to being stuck waiting for a null character to terminate input.

Proof it works on codewars for example :

solve

This also means that every other problem where you can choose brainfuck as a language but DOESN'T either:

  • Terminate input with a null character
  • Tell you how much input to expect

Is most likely also impossible.

The easiest solution for this issue would be to always append a null character to terminate input if the language is set to brainfuck.

Please login and solve 5 problems to be able to post at forum