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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly