Исходники и презентации
This commit is contained in:
11
lessons/interfaces/generic_tree/main.go
Normal file
11
lessons/interfaces/generic_tree/main.go
Normal file
@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
type BSTItem interface {
|
||||
Less(BSTItem) bool
|
||||
}
|
||||
|
||||
type BSTNode struct {
|
||||
item BSTItem
|
||||
left *BSTNode
|
||||
right *BSTNode
|
||||
}
|
||||
Reference in New Issue
Block a user