摘要: 1 用容器set 2 用哈希表 3 用双指针法 1 class Solution { 2 public: 3 ListNode* detectCycle(ListNode* head) { 4 set<ListNode*> exclude; 5 ListNode* p,*res; 6 p = hea 阅读全文
posted @ 2023-02-23 10:55 xiazichengxi 阅读(15) 评论(0) 推荐(0)