Q.

Stack can be reversed without using extra space by                            

A. using recursion
B. using linked list to implement stack
C. using an extra stack
D. it is not possible
Answer» B. using linked list to implement stack
Explanation: if linked list is used for implementing stack then it can be reversed without using any extra space.
1.4k
0
Do you find this helpful?
1

Discussion

No comments yet