Sponsor Area

TextBook Solutions for Haryana Board - English Medium Class 12 Computer And Communication Technology Computer Science With Python Chapter 6 Stacks & Queues In List

Question 1
CBSEENCO12011593

Evaluate the following Postfix notation of expression:
4,2,*,22,5,6,+,/,-

Solution
Element Stack Contents  
4 4
2 4,2
* 8
22 8, 22
5 8, 22, 5
6 8, 22, 5, 6
+ 8, 22, 11
/ 8, 2
- 6

Sponsor Area