空間復(fù)雜度O(1),時(shí)間復(fù)雜度估計(jì)略大于o(n),不需額外數(shù)組或指針 /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ListNode* EntryNodeOfLoop(ListNode* pHead) { while(pHead){ if(pHead->val <= -100000){ ...