Copy List with Random Pointer

Title: Copy List with Random Pointer Source: leetcode.com

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.

Return a deep copy of the list.

Java solution

Rate this post

Leave a Reply