InterviewSolution
Saved Bookmarks
| 1. |
Why is implementation of stack operations on queues not feasible for a large dataset (Asssume the number of elements in the stack to be n)?(a) Because of its time complexity O(n)(b) Because of its time complexity O(log(n))(c) Extra memory is not required(d) There are no problemsThis key question is from Queue using Stacks topic in portion Abstract Data Types of Data Structures & Algorithms II have been asked this question in homework. |
|
Answer» The CORRECT answer is (a) Because of its time complexity O(N) |
|