Skip to content
RED SAGSkills
medium10 pts · first answer countshash-maplinked-lists

Copying a list with random pointers

Each node of a linked list has next and random pointers. What is the simplest O(n) way to deep-copy it?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions