摘要: 判断两个链表是否相汇,可以通过将第一个链表的尾部与第二个链表的头部相连接,如果链表形成了环,则说明链表相汇了。 / 两个链表是否公共结点 / include include include include using namespace std; typedef struct node link; 阅读全文
posted @ 2018-04-04 00:16 fenicnn 阅读(137) 评论(0) 推荐(0) 编辑