What is the time complexity of the push() operation in an array-based stack?
What is the time complexity of the push() operation in an array-based stack?
- A.
O(1)
- B.
O(log n)
- C.
O(n log n)
- D.
O(n)
Attempted by 202 students.
Sign up free to check your answer
Sign up freeLoading lesson…