Stack Flashcards
1
Q
How you can implement stack? And which implementation is the fastest?
A
With array and linked list structure.
Stack implemented on dynamic array structure is the fastest.
2
Q
What about the execution time in the stack?
A
Execution time in push and pop are O(1), that mean they take constant time for this operations.