Back to course home
0% completed
Vote For New Content
Here is Link to Better Explanation
k
Jun 3, 2023
3 methods. I Liked 2nd.
While iterating over Nodes, modify every nodes and point them towards temporary variable. If there is loop, you will come back to the Node that is pointing towards temporary variable. That's the Node you are finding! https://www.geeksforgeeks.org/find-first-node-of-loop-in-a-linked-list/
7
0
Comments
Comments
S
Satappa khot2 years ago
geeksforgeeks solution is easier to understand