Books are the ladder of human progress
01
26
算法知识 算法知识
判断链表是否有环使用快慢指针,当他们相遇时,则有环 bool IsExitsLoop(slist *head) { slist *slow = head, *fast = head; while ( fast && fas
2022-01-26