Open
Description
I see that TreeSet is
type Set struct {
tree *rbt.Tree
}
and rbt.Tree
has Left()
and Right()
to get the min and max:
gods/trees/redblacktree/redblacktree.go
Lines 196 to 216 in 14f7142
Can we expose those methods in the TreeSet too? The workaround of calling arr := treeset.Values()
and then grabbing arr[0]
and arr[len(arr)-1]
seems very wasteful.
Metadata
Metadata
Assignees
Labels
No labels