Clone/Copy a linked list with next and random pointers

preview_player
Показать описание
Given a linked list with random pointers. Give steps to Clone/copy the linked list.
Рекомендации по теме
Комментарии
Автор

Great job! Thanks for the video. This was asked in my friend's Adobe interview. Also, if the original list is required to be retained as before, original->next = original->next->next->r

sonalsrivastava
Автор

Easy to understand solution ! Thanks Vivekanand !

pranavganorkar
Автор

Very Clear and crisp explanation Sir. Always loved your videos because of their simplicity .

aritralahiri
Автор

THAKN YOU SOSOSOSOSOS MUCH ! WAS STRUGGLING SO MUCH WITH THIS QUESTION ! ! ! !
FINALLY UNDERSTOOD IT
CANT THANK ENOUGH ! ! ! ! ! ! ! !

ankushgupta
Автор

using this approach, how can you reconstruct the original list so it will not be lost?

Paul-jxtl
Автор

its good to see such a good video and you are still uploads videos today!

gaoqiangzhou
Автор

Wrong approach this approach will work with hashmap only . Bcoz next of original LL is lost so how we r going to traverse next in original Linked list ????

priyanshukhullar
Автор

Thank you for such a good explanation.

unmeshguleri
Автор

Thanku soo much for making all d concept clear

prabhasingh
Автор

Thank you for posting the videos!! They are super helpful!

chenzhuo
Автор

Sir your videos are great. Thank you for uploading insightful videos . Could you please organize your videos in a youtube playlist, So that, that will be easy for a new viewers to watch the videos in a sequential manner. Anyway Great Initiative really appreciable.

arjungurjar
Автор

very clear explanation, if you can add the implementation in Java will be wonderful.

along
Автор

@vivekanand khyade great work.
can you add your github repository link description instead of writing on board that will increase your views and clarity .

vaibhavmorye
Автор

The question, that I thought was too difficult
Now I think that's too easy .
Thank you sir

joichirogaming
Автор

Thanks a lot for explaining in such easy way

mehulshah
Автор

this is not the right method you can't recover the original list with this approach. I will say use the next of clone and point it to next original object and make a garland of the old and new list and then recover the old and the new

adityaakshay
Автор

You should have explained also the part where we restore the original linked list pointers !

ragingpahadi
Автор

What about those broken links in original list?

harshalchaudhari
Автор

But u didn't Point the next Pointer of Original DLL to the Previous Position.

anujagrawal
Автор

He is a great teacher but sadly an underrated teacher :(

PatelFromPatna
join shbcf.ru