Copy List With Random Pointer — Linked List

Duplicate a chain whose items carry an extra optional pointer to any other item, producing fresh items with identical links.

Linked List · Medium

More in Linked List

All algorithm problems