Explanation: as a linked list takes o(n) time for getting reversed thus linked list version of stack will also take the same time.
Q. What is the time complexity of the program to reverse stack when linked list is used for its implementation?
β
Correct Answer: (A)
o(n)
Explanation by: Mr. Dubey
as a linked list takes o(n) time for getting reversed thus linked list version of stack will also take the same time.
Discussion
Question Analytics
118
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
96%
Success Rate