Files
deep_go/lessons/interfaces/generic_tree/main.go

12 lines
133 B
Go
Raw Normal View History

package main
type BSTItem interface {
Less(BSTItem) bool
}
type BSTNode struct {
item BSTItem
left *BSTNode
right *BSTNode
}