DIY: Copy List with Random Pointer
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 create a function that takes the head of ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy