Python Forum
Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy List [Help Needed]
#1
Hey all,

Any pointers on how to solve this -

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.

Problem Link

I'm preparing for my technical interviews and solved around 50+ Problems. Need any pointers to solve the above one. Angel Angel

Thank you in advance!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy List Not Copying BAbdulBaki 3 574 Aug-19-2023, 02:03 AM
Last Post: perfringo
  Dictionary from a list failed, help needed leoahum 7 1,898 Apr-28-2022, 06:59 AM
Last Post: buran
  About list copy. water 3 1,503 Apr-03-2022, 02:42 AM
Last Post: deanhystad
Question Making a copy list in a function RuyCab 1 1,767 Jul-11-2021, 02:06 PM
Last Post: Yoriz
  Copy List Structure leoahum 2 2,866 Mar-22-2019, 05:40 PM
Last Post: leoahum
  copy list into variable poroton 1 2,572 Aug-10-2018, 07:19 AM
Last Post: Gribouillis
  Which approach is better to copy a list? nexusfactor 6 4,638 Oct-15-2017, 10:45 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020