|
|
|
|
|
|
Question
17
:
Consider yourself to be in a planet where the computational power of chips to be slow. You have an array of size 10.You want to perform enqueue some element into this array. But you can perform only push and pop operations .Push and pop operation both take 1 sec respectively. The total time required to perform enQueue operation is?
1. 20 2. 40 3. 42 4. 43
View Answer
Discuss with Members
|
|
|
Question
20
:
Consider the following operation performed on a stack of size 5. Push(1); Pop(); Push(2); Push(3); Pop(); Push(4); Pop(); Pop(); Push(5); After the completion of all operation, the number of elements present in stack are
1. 1 2. 2 3. 3 4. 4
View Answer
Discuss with Members
|