Skip to content

Commit e457aaf

Browse files
committed
[zh-tw] Update Stack
1 parent 9588d55 commit e457aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh-tw/basics_data_structure/stack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import collections
1414
stack = collections.deque()
1515
```
1616

17-
`list`作為最基本的`python`資料結構之一, 可以很輕松的實現`stack`。 如果需要更高效的`stack`, 建議使用`deque`
17+
`list`作為最基本的`python`資料結構之一, 可以很輕鬆地實現`stack`。 如果需要更高效的`stack`, 建議使用`deque`
1818

1919
#### Methods
2020

21-
- `len(stack) != 0` - 判斷`stack`是否weikong
21+
- `len(stack) != 0` - 判斷`stack`是否為空
2222
- `stack[-1]` - 取堆疊頂元素,不移除
2323
- `pop()` - 移除堆疊頂元素並返回該元素
2424
- `append(item)` - 向堆疊頂添加元素

0 commit comments

Comments
 (0)