【文件属性】:
文件名称:skiplist:用搜索手指执行跳过列表
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-30 05:37:44
Go
跳过清单
用搜索手指去执行跳过列表。
参考: :
此实现支持重复键。 但是,因此,此实现不支持Update。
例子
戴着int跳过列表
// Creating a new skiplist, using the built-in Less Than function as the comparator.
// There are also two other built in comparators: BuiltinGreaterThan, BuiltinEqual
list := New(skiplist.BuiltinLessThan)
// Inserting key, value pairs into the skiplist. The skiplist is sorted by key,
// using the comparator function to determ
【文件预览】:
skiplist-master
----.gitignore(278B)
----iterator.go(1KB)
----node.go(1KB)
----LICENSE(1KB)
----README.md(3KB)
----compare.go(4KB)
----skiplist_test.go(9KB)
----skiplist.go(12KB)