Why is the implementation of stack operations on queues not feasible for a large dataset (Assume 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 problems
Answer:B
Why is the implementation of stack operations on queues not feasible for a large dataset (Assume 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 problems