






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This notes is about stack application
Typology: Study notes
1 / 10
This page cannot be seen from the preview
Don't miss anything!







Applications of Stack
Why do we need Infix to Pre/Postfix Conversion?
Infix to Postfix
Infix to Postfix using Stack else { while (c has a precedence lower than or equal to the top of the stack) Output += Pop(S) Push(c, S) } } if (c == ')') { while (Pop(S) != '(') Output += Pop(S) } } while (!isEmpty(S)) Output += Pop(S)
23/(2-1)+53 to 2321-/53+