Problem Statement Explanation


The problem statement is too confusing.
Simply saying, you have to create a new node for every existing node of the linked list and give the links (next and random) to the created new nodes, by looking at the old nodes. These next and random pointers in the new nodes should point to the newly created nodes only. I think this helps a bit in understanding the problem statement.