- 博客(2)
- 收藏
- 关注
原创 160. Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 ↘
2017-06-30 21:08:18 243
原创 单链表合并排序
输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则 题目来源:牛客网 https://www.nowcoder.com/questionTerminal/d8b6b4358f774294a89de2a6ac4d9337 非递归思路 如果其中有一个链表为空,则返回另一个链表(包括两个都为空时,直接返回空) 创建两个指针,p 和 tail(
2017-06-30 18:41:00 556
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人