Linked List Cycle LeetCode 141. Linked List Cycle Solutions Solution 1: Use set to memorize visited node. Extra space Solution 2: Make visited node pointed to itself. No extra space Break original structure PREVIOUSReverse Linked ListNEXTContainer With Most Water