//带环返回1//不带环返回0intIsCycle(PLinkListpList,PLinkList*ppMeetNode){ Node*fast=pList; Node*slow=pList; while(fast&&fast->next) { slow=slow->next; fast=fast->next->next; if(slow==fast) { *ppMeetNode=slow; return1; } } *ppMeet..
分类:
其他好文 时间:
2015-08-30 01:13:00
阅读次数:
153