how to make two or three consecutive pops
we can push more than one symbol at a time in to the stack, in same way we can pop more than one symbol from the stack at a time.
I will give transition diagram, wait for some time
(Sorry for poor image.)
@aditi19 ITS JUST HERE TO MAKE THINGS LOOK SIMPLE.
YOU CAN ALSO DO THIS BY MAKING LOOP. LIKE MAKING LOOP FOR e.g. (aa)* .....
P: (aa)* is just random example nothing to do with question
@aditi19 I'm not sure how that goes. Perhaps you can tell me your perspective why we need to do that?
64.3k questions
77.9k answers
244k comments
80.0k users