No video

Detect Loop in Linked List | Linked List Cycle | Floyd's algorithm | C++

  Рет қаралды 1,196

Knowledge Center

Knowledge Center

Күн бұрын

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
@moviefreak6444
@moviefreak6444 5 жыл бұрын
Nice video. Increase your upload frequency for Data Structures topics.
@KnowledgeCenter
@KnowledgeCenter 5 жыл бұрын
Advice taken. Thanks for the feedback.
@williamwambua7710
@williamwambua7710 4 жыл бұрын
Just an idea....can we also use unordered_set to keep the nodes visited instead of a hash table...coz of the complexity?
@chunkwanchan5503
@chunkwanchan5503 8 ай бұрын
Can I initial the fast pointer at node 2 , slow at node 1 ?
@harinderkaur8587
@harinderkaur8587 5 жыл бұрын
very nicely explained. Could you pls provide code for all the functions like insertNodeAtEnd(1),insertNodeAtPosiionK(10, 1) and printList()
@KnowledgeCenter
@KnowledgeCenter 5 жыл бұрын
Thanks Harinder. Will add to github and update github link in the video.
@KnowledgeCenter
@KnowledgeCenter 5 жыл бұрын
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
Find Length of Loop in Linked List | C++
7:27
Knowledge Center
Рет қаралды 3,8 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 23 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 8 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 19 МЛН
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Time Based Key-Value Store | Leetcode 981
21:13
Knowledge Center
Рет қаралды 1,5 М.
Understanding and implementing a Hash Table (in C)
24:54
Jacob Sorber
Рет қаралды 347 М.
10 Common Coding Interview Problems - Solved!
2:10:50
freeCodeCamp.org
Рет қаралды 570 М.
Longest Substring Without Repeating Characters | Leetcode 3 | C++
24:28
Race Car | Leetcode 818 | C++
30:26
Knowledge Center
Рет қаралды 3,8 М.
How HashMap works in Java? With Animation!! whats new in java8 tutorial
15:29
Ranjith ramachandran
Рет қаралды 1 МЛН
Time and Space Complexity Analysis of Hash Table | Knowledge Center
6:27
Knowledge Center
Рет қаралды 2,1 М.
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 23 МЛН