GATE Computer Science (CS) 2016 Shift 1 Solved Paper
© examsiri.com
Question : 51 of 65
Marks:
+1,
-0
Let Q denote a queue containing sixteen numbers and S be an empty stack. Head(Q) returns the element at the head of the queue Q without removing it from Q. Similarly, Top(S) returns the elements at the top of S without removing it from S. Consider the algorithm given below.
The maximum possible number of iterations of the while loop in the algorithm is _______.
The maximum possible number of iterations of the while loop in the algorithm is _______.
- Your Answer:
Go to Question: