1
0
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:
dudaodong
2022-02-04 22:42:51 +08:00
parent eb59d02a08
commit cee9bb538f
4 changed files with 174 additions and 2 deletions

View File

@@ -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