登录
|
注册
公司
标签
文章
搜索
链表
热门公司
阿里巴巴
微软
腾讯
迅雷
华为
百度
热门职位
研发工程师
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
945
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given1->2->3->4->5->NULL, m = 2 and n = 4, return1->4->3->2->5->NULL. Note: Given m, n satisfy the following condition: 1 ≤ m ≤ n ≤ length of list. ...
阅读题目
链表
面试题
经典指数
0
0
936
Given a linked list, swap every two adjacent nodes and return its head. For example, Given1->2->3->4, you should return the list as2->1->4->3. Your algorithm should use only constant space. You may not modify the values in the list, only nodes itself can be changed. ...
阅读题目
链表
面试题
经典指数
0
0
929
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given1->2->3->3->4->4->5, return1->2->5. Given1->1->1->2->3, return2->3. ...
阅读题目
链表
面试题
经典指数
0
0
921
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given1->1->2, return1->2. Given1->1->2->3->3, return1->2->3. ...
阅读题目
链表
面试题
经典指数
1
0
919
静态链表中指针表示的是() 下一元素的地址 内存储器的地址 下一元素在数组中的位置 左链或右链指向的元素的地址 ...
阅读题目
链表
单选题
经典指数
0
0
897
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. ...
阅读题目
链表
面试题
经典指数
0
0
890
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it without using extra space? ...
阅读题目
链表
面试题
经典指数
0
0
878
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given{1,2,3,4}, reorder it to{1,4,2,3}. ...
阅读题目
链表
面试题
经典指数
1
0
821
输入一个链表,从尾到头打印链表每个节点的值。 ...
阅读题目
链表
面试题
经典指数
<<
<
20
21
22
23
24
25
>
>>
249
题目数
1
贡献者
212
答案数
扫描后移动端查看
我也分享一个题目
相关标签
数组
阿里巴巴
研发工程师
队列
C语言工程师
栈
复杂度
树
哈希
2015
同类标签
树
排序
数组
字符串
复杂度
查找
栈
图
哈希
队列
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录