SkipNode
in package
Represents a node in the SkipList
Table of Contents
- $forward : array<string|int, mixed>|null
- $val : mixed
- __construct() : mixed
- Constructor method
Properties
$forward
public
array<string|int, mixed>|null
$forward
Array of pointers to nodes of same level
$val
public
mixed
$val
Value stored in the node
Methods
__construct()
Constructor method
public
__construct([mixed|null $val = null ], int $level) : mixed
Parameters
- $val : mixed|null = null
-
The value to be stored in the node
- $level : int
-
The level of the node (default 0)