Draw a 2PDA that accepts MIDDLE A
of all words that have A
as the middle letter.
Also, Explain the Logic of it.
It is a hard question for the beginners
But you can solve it by using little bit concentration.
It is simple...
a
other move forward.If you pop a letter from a stack and it is
aand both stacks are empty then the string is accepted.
Happy Coding.