Vidyalelo
Data Structure · Q974

Miscellaneous on Data Structures

Programming · Data Structure · question 974

Q974

What is the time complexity of the program to reverse stack when linked list is used for its implementation?

A.
O(n)
Answer
B.
O(n log n)
C.
O(n2)
D.
O(log n)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board