Detect if a linked list has a cycle using Floyd two-pointer fast-slow algorithm. Return true if cycle exists.
Examples