floyd-cycle-detection-o1-space

Status: IN

`hasCycle` uses Floyd's tortoise-and-hare algorithm with O(1) auxiliary space — only two pointer variables, no visited set.

Source: entries/2026/06/06/linked-list-cycle-solution.md

JSON