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
}
ArrayStack 的通用实现 顺序栈的实现
func NewStack ¶
func NewStack(capacity int) *ArrayStack
type LinkedStack ¶
type LinkedStack struct {
// contains filtered or unexported fields
}
func NewLinkedStack ¶
func NewLinkedStack() *LinkedStack
func (*LinkedStack) Len ¶
func (s *LinkedStack) Len() int
func (*LinkedStack) Peek ¶
func (s *LinkedStack) Peek() interface{}
func (*LinkedStack) Pop ¶
func (s *LinkedStack) Pop() interface{}
func (*LinkedStack) Push ¶
func (s *LinkedStack) Push(value interface{}) bool
Click to show internal directories.
Click to hide internal directories.