mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Unify the function naming of
queue from `offer()` to `push()`
This commit is contained in:
@@ -22,7 +22,7 @@ func TestStack(t *testing.T) {
|
||||
stack = append(stack, 2)
|
||||
stack = append(stack, 5)
|
||||
stack = append(stack, 4)
|
||||
fmt.Print("栈 = ")
|
||||
fmt.Print("栈 stack = ")
|
||||
PrintSlice(stack)
|
||||
|
||||
/* 访问栈顶元素 */
|
||||
|
||||
Reference in New Issue
Block a user