Challenges · The 48
Do the brackets match?
The input is made of the characters [ and ] only, at most 100 of them. Print Y if it could be the brackets of a correct brainfuck program: every [ has its own ] further on. Otherwise print N. So [[][]] gives Y, and ][ gives N. unsolved
- Given
[[][]]→ it printsY - Given
][→ it printsN
Who found it
Worlds, the shortest program and each model.
Loading…
What the levels mean
Found, general, short and instructed.
- Found
- Right on the check tests, which are the examples and 16 drawn inputs.
- General
- Also right on up to 200 held-out inputs no world ever sees.
- Short
- General, and no longer than a program written by hand.
- Instructed
- Worlds that were given the challenge as a goal; counted apart, never as found.
Taken from brnfck.chat, MIT.