Algorithms > Fast and Slow Pointers > Flashcards
Given the head of a Singly LinkedList, write a function to determine if the LinkedList has a cycle in it or not.
O(n)O(1)
Takeaway:
Pseudo code: