mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-06 05:42:25 +08:00
feat: add stacklink.go implements stack with link
This commit is contained in:
@@ -2,7 +2,7 @@ package datastructure
|
||||
|
||||
import "errors"
|
||||
|
||||
// StackArray is a linear table, implemented with slice
|
||||
// StackArray implements stack with slice
|
||||
type StackArray[T any] struct {
|
||||
data []T
|
||||
length int
|
||||
|
||||
Reference in New Issue
Block a user