The problem is to check if sequence is palindrome using Brainfuck.
input is a sequance of numbers
output 0 if it is not palindorme, else 1.
I have one idea: Say, we have sequance 1 2 3 2 1. We can memorise first cell from our array in variable(do this using operation '!'),
- then change 1 to 0(do this using operation '0'),array will be 0 2 3 2 1,
- then we go to the end of array until we meet 0 (do this using '>[>]'),
- then we take number from variable and get sequance 0 2 3 2 1 1.
- Next step should be to compare two last numbers, if they are equal continue algo from begining else do something...
I do not know how to implement last step.