Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayStack ¶
type ArrayStack struct {
// contains filtered or unexported fields
}
基于动态数组实现的stack
type LinkedListStack ¶
type LinkedListStack struct {
// contains filtered or unexported fields
}
func (LinkedListStack) Pop ¶
func (stack LinkedListStack) Pop() (interface{}, error)
O(1) 弹出并获取栈顶的元素
Click to show internal directories.
Click to hide internal directories.