如果有环,第二次出现的为入口结点 /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ListNode* EntryNodeOfLoop(ListNode* pHead) { set<ListNode *> res; ListNode *cur=pHead; while(cur!=NU...