MCPcopy
hub / github.com/wangzheng0822/algo / ArrayStack

Struct ArrayStack

go/08_stack/StackBasedOnArray.go:9–14  ·  view source on GitHub ↗

* 基于数组实现的栈 */

Source from the content-addressed store, hash-verified

7*/
8
9type ArrayStack struct {
10 //数据
11 data []interface{}
12 //栈顶指针
13 top int
14}
15
16func NewArrayStack() *ArrayStack {
17 return &ArrayStack{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected