判断带环链表相交的点

一、判断两个链表是否相交,若相交,求交点。(假设链表可能带环)。ios #include<iostream> #include<assert.h> using namespace std; struct ListNode { int _value; ListNode* _next; ListNode(int value) :_value(value) , _next(NULL) {
相关文章
相关标签/搜索