I think this algo is correct. On Sunday, 1 July 2012 13:06:17 UTC+5:30, Ashu wrote: > > count=0; > Start parsing from left to right > If operator push in stack. > In number add in queue and increment count by one, > if count == 2 then > pop from stack add in queue, decrements the count by one. > > > On Friday, 29 June 2012 19:46:43 UTC+5:30, zerocool142 wrote: >> >> Given an integer expression in a prefix format (i.e. the operator >> precedes the number it is operating on) , print the expression in the >> post fix format . >> >> Example: If the integer expression is in the prefix format is *+56-78, >> the postfix format expression is 56+78-*. Both of these >> correspond to the expression (5+6)*(7-8). >> >
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/rDtvZKTNNQcJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.