LInked List Cycle

fast一次走两格,slow一次走一格。如果之后fast == slow,说明有loop。

results matching ""

    No results matching ""