Problem 382 · Medium

Linked List Random Node

Select a random node from a linked list using reservoir sampling.

Open the interactive visualisation