/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ #include <map> class Solution { public: //判断当前节点是否被遍历过 bool IS_EXIST(map<int,ListNode*>& listMap,ListNode* cur){ for(auto lm : listMap){ ...