...
/DIY: Copy List with Random Pointer
DIY: Copy List with Random Pointer
Solve the interview question "Copy List with Random Pointer" yourself in this lesson.
We'll cover the following...
We'll cover the following...
Problem statement
You are given a linked list where each node contains an additional pointer called random
. This pointer can point towards any node in the list or none. Your task is to ...