code kata 230808

This commit is contained in:
VicRen
2023-08-08 22:08:51 +08:00
parent 5f7b76c60a
commit 02e1a8ad1a
7 changed files with 471 additions and 2 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import "errors"
type Stack []interface {
}
func NewStack() Stack {
return Stack{}
func NewStack() *Stack {
return &Stack{}
}
func (s Stack) IsEmpty() bool {