- 2 5 What Is The Output Of The Following Stack Algorithm Push Mystack Jack Push Mystack Jose Push Mystack 1 (21.2 KiB) Viewed 20 times
2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack,
2. [5] What is the output of the following stack algorithm? Push (myStack, 'Jack') Push (myStack, Jose') Push (myStack, 'Ali') Push(myStack, 'Mike') Pop (myStack, name) Write name + ", " Pop (myStack, name) Push(myStack, name) Push (myStack, name) Push (myStack, 'Harman') WHILE (NOT IsEmtpy (myStack)) Pop (myStack, name) Write name + END WHILE 1