...

/

Challenge 6: Detect Loop in a Linked List

Challenge 6: Detect Loop in a Linked List

Loops in linked lists can be dangerous. Now, you will create an algorithm to detect them.

Problem statement

By definition, a loop is formed when a node in your linked list points to a previously traversed node.

You must implement the DetectLoop() function, ...