快慢指针解法(推荐) 类似于链表找环,使用快慢指针检测循环
(int n)
source not stored for this graph (policy: none)
no test coverage detected