package data_structure import ( "math" "math/rand/v2" ) const MaxLv = 11 type Node struct { value int // 节点值 level int // 节点拥有最高层数 next [MaxLv]*Node // 每一层的下一个节点 } type Skiplist struct { head *Node // 头节点 curLevel int // 当前跳表的最高层数 } func Constructor() Skiplist { sl := Skiplist{ head: &Node{ valu...