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
  What is a faster way to deep copy a nested list without using .deepcopy()? Shervin_Ataeian 1 1,468 Oct-13-2024, 01:28 PM
Last Post: Pedroski55
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 1,359 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Copy List Not Copying BAbdulBaki 3 1,477 Aug-19-2023, 02:03 AM
Last Post: perfringo
  Dictionary from a list failed, help needed leoahum 7 3,241 Apr-28-2022, 06:59 AM
Last Post: buran
  About list copy. water 3 2,529 Apr-03-2022, 02:42 AM
Last Post: deanhystad
Question Making a copy list in a function RuyCab 1 2,390 Jul-11-2021, 02:06 PM
Last Post: Yoriz
  Copy List Structure leoahum 2 3,543 Mar-22-2019, 05:40 PM
Last Post: leoahum
  copy list into variable poroton 1 3,181 Aug-10-2018, 07:19 AM
Last Post: Gribouillis
  Which approach is better to copy a list? nexusfactor 6 5,977 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