登录
|
注册
公司
标签
文章
搜索
链表
热门公司
阿里巴巴
微软
腾讯
迅雷
华为
百度
热门职位
研发工程师
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
1583
两个单向链表,有可能交叉,请设计算法判断是否交叉,如果交叉,返回交叉点!算法复杂度o(n) ...
阅读题目
百度
链表
问答题
经典指数
0
0
1574
寻找一个单向链表的中项,如果存在两个则返回前一个,请给出算法描述并给出代码实现。 ...
阅读题目
百度
链表
问答题
经典指数
0
0
1521
对长度为n的线性表进行顺序查找,在最坏情况下所需要的比较次数为 1 ...
阅读题目
数组
链表
填空题
经典指数
0
0
1489
有两个较长的单向链表a和b,为了找出节点node满足node in a并且node in b。请设计空间使用尽量小的算法。(c/c++/java或伪码表示都可以) ...
阅读题目
阿里巴巴
链表
问答题
经典指数
0
0
1255
循环链表的主要优点是什么? ...
阅读题目
链表
问答题
经典指数
0
0
1182
用c语言把双向链表中的两个结点交换位置,考虑各种边界问题。 struct Node { Node *prev; Node *next; } void exchange(Node *node1,Node *node2) { } ...
阅读题目
网易
链表
问答题
经典指数
0
0
1160
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? ...
阅读题目
链表
面试题
经典指数
0
0
1060
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of the two partitions. For example, Given1->4->3->2->5->2and x = 3, return1->2->2->4->3->5. ...
阅读题目
链表
面试题
经典指数
0
0
1012
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try to do this in one pass. ...
阅读题目
链表
面试题
经典指数
0
0
1011
Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value or absolute value of its key equals K will be kept. At the mean time, all the removed nodes must be kept in a separate list. For example, given L being 21→-15→-15→-7→15, you must output 21→-15→-7, and the removed list -15→15. 输入描述: Each input file contains one test case. For each case, the first li ...
阅读题目
链表
面试题
经典指数
1
2
3
4
38
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
数组
阿里巴巴
研发工程师
队列
C语言工程师
栈
复杂度
树
哈希
2015
同类标签
树
排序
数组
字符串
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录