Which site or book would you recommend for linked list structure? i should to study.
@CodeVault3 жыл бұрын
I'm really not sure... geeksforgeeks has decent code but it's not the best quality
@nematkosha66833 жыл бұрын
@@CodeVault may I have your email this one is my email (nemat.kosha160@gmail.com) send me I email i have some problem to help me
@catalinvrabiuta82 жыл бұрын
could you put the code from linked lists on a github repository?
@CodeVault2 жыл бұрын
The code from all the videos can be found on our website. Here is the link: code-vault.net/lesson/2t4nd0hjh5:1603732280242
@wassimhaimoudi Жыл бұрын
I am having a hard time understanding what would happen if it started looping at node number 3 or 4 basically n>2whereas n is the number of nodes traversed before the first time we encounter a cycle start point. Anyone can help me with that? I tried when n = 3 with 6 nodes total and the first time both pointers intersect at the same location is inside the loop. Basically at node 5. But the problem is the slow pointer didn’t reach the end of the linked list for the first time so we don’t know yet if we are inside a cycle or again since didn’t reach the end from where the cycle loops back which is node 6. Thanks for helping me in advance!
@CodeVault Жыл бұрын
The fast pointer should always find the slower pointer if a loop exists. It could take more than 1 iteration of the loop for the pointers to coincide
@wassimhaimoudi Жыл бұрын
@@CodeVault Thank you for the response! I think I get it now.
@MonkoGames3 жыл бұрын
Im getting a segmentation fault in the while loop
@CodeVault3 жыл бұрын
What's the code? And also how do you create the linked list?