判断链表是否有环使用快慢指针,当他们相遇时,则有环
bool IsExitsLoop(slist *head)
{
slist *slow = head, *fast = head;
while ( fast && fas
2022-01-26