Documentation ¶
Index ¶
Constants ¶
View Source
const ( FactorP = float32(0.25) // level i 上的结点 有FactorP的比例出现在level i + 1上 MaxLevel = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkipList ¶
type SkipList[T any] struct { // contains filtered or unexported fields }
func NewSkipList ¶
func NewSkipList[T any](compare ekit.Comparator[T]) *SkipList[T]
func NewSkipListFromSlice ¶
func NewSkipListFromSlice[T any](slice []T, compare ekit.Comparator[T]) *SkipList[T]
func (*SkipList[T]) DeleteElement ¶
Click to show internal directories.
Click to hide internal directories.