mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-29 21:33:07 +08:00
build
This commit is contained in:
@ -4,7 +4,7 @@ comments: true
|
||||
|
||||
# 5.4 Summary
|
||||
|
||||
### 1. Key Review
|
||||
### 1. Key review
|
||||
|
||||
- Stack is a data structure that follows the Last-In-First-Out (LIFO) principle and can be implemented using arrays or linked lists.
|
||||
- In terms of time efficiency, the array implementation of the stack has a higher average efficiency. However, during expansion, the time complexity for a single push operation can degrade to $O(n)$. In contrast, the linked list implementation of a stack offers more stable efficiency.
|
||||
|
Reference in New Issue
Block a user