code : https://ide.codingblocks.com/s/223081
for input a+bc-d/e
output should be abc+de/-
mine is coming abcde/-*+
can anyone correct the error?
code : https://ide.codingblocks.com/s/223081
for input a+bc-d/e
output should be abc+de/-
mine is coming abcde/-*+
can anyone correct the error?
hello @chaman9
u need to pop all operators from stack whose precedance is greater than the operator u are currently at.
pls refer this -> https://www.geeksforgeeks.org/stack-set-2-infix-to-postfix/
btw there was some other mistake in codeā¦ anyways thanks a lot