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 结构,并实现 Stack 接口
func NewArrayStack ¶
func NewArrayStack() *ArrayStack
func (*ArrayStack) GetSize ¶
func (a *ArrayStack) GetSize() int
func (*ArrayStack) IsEmpty ¶
func (a *ArrayStack) IsEmpty() bool
func (*ArrayStack) Peek ¶
func (a *ArrayStack) Peek() interface{}
func (*ArrayStack) Pop ¶
func (a *ArrayStack) Pop() interface{}
func (*ArrayStack) Push ¶
func (a *ArrayStack) Push(e interface{})
Click to show internal directories.
Click to hide internal directories.