Detect a cycle or loop in a Linked List. Explanation and implementation in C++. Github Link: github.com/KnowledgeCenterYou... Code can be found at neuralnetworksai.blogspot.com... #Loop #Detection #Linked #List
Пікірлер: 7
@moviefreak64445 жыл бұрын
Nice video. Increase your upload frequency for Data Structures topics.
@KnowledgeCenter5 жыл бұрын
Advice taken. Thanks for the feedback.
@williamwambua77104 жыл бұрын
Just an idea....can we also use unordered_set to keep the nodes visited instead of a hash table...coz of the complexity?
@chunkwanchan55038 ай бұрын
Can I initial the fast pointer at node 2 , slow at node 1 ?
@harinderkaur85875 жыл бұрын
very nicely explained. Could you pls provide code for all the functions like insertNodeAtEnd(1),insertNodeAtPosiionK(10, 1) and printList()
@KnowledgeCenter5 жыл бұрын
Thanks Harinder. Will add to github and update github link in the video.
@KnowledgeCenter5 жыл бұрын
Hi Harinder. Added the complete cpp file. Calls to different functions would be commented out in main(). Comment/uncomment as per requirement. Link: github.com/KnowledgeCenterKZfaq/LinkedList/blob/master/LinkedListComplete.cpp