class DSA::SkipListNode
Attributes
down[RW]
key[RW]
next[RW]
prev[RW]
up[RW]
value[RW]
Public Class Methods
new(key, value = nil)
click to toggle source
# File lib/DSA/skip_list.rb, line 4 def initialize(key, value = nil) @key = key @value = value @prev = nil @next = nil @up = nil @down = nil end
Public Instance Methods
is_sentinel?()
click to toggle source
# File lib/DSA/skip_list.rb, line 13 def is_sentinel? @key.equal? SkipListLevel::SENTINEL end