Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Solution ¶
type Solution struct {
// contains filtered or unexported fields
}
Solution is the solution for the reservoir sampling algorithm.
func Constructor ¶
Constructor accepts a head node of a linked list. Note that the head is guaranteed to be not null, so it contains at least one node.
Click to show internal directories.
Click to hide internal directories.