Examveda

What is the time complexity for accessing the top element in a stack implemented using an array?

A. O(1)

B. O(n)

C. O(log n)

D. O(n log n)

Answer: Option A


This Question Belongs to Data Structure >> Stacks In Data Structures

Join The Discussion

Related Questions on Stacks in Data Structures