题库chevron_right分类chevron_right链表
link

链表

66 道题目
简单: 12中等: 47困难: 7

链表 是技术面试里最常出现的能力维度之一。建议先掌握基础题型的边界处理,再逐步过渡到模式识别和复杂度 trade-off。

面试场景

高频考察问题建模、边界条件与口头表达的清晰度。

常见误区

只背模板不解释为什么,容易在追问里失分。

练习策略

每轮练 3-5 题,固定复盘复杂度和可替代解法。

推荐练习顺序

题库

链表 题库

先展示一段最适合快速浏览的题目列表,继续滚动时再慢慢续载,避免专题页被长列表一下子拉穿。

慢加载专题题库

适合这类题很多的专题,先扫结构,再逐步深入。

hourglass_bottom滚动续载
search
tune难度

当前展示 24 / 66 道题目

每次续载 24 题
#题目难度
2

两数相加

Add Two Numbers requires careful linked-list pointer manipulation to sum digits while handling carries efficiently in in…

中等
19

删除链表的倒数第 N 个结点

Remove the nth node from the end of a linked list using a two-pointer approach to solve efficiently.

中等
21

合并两个有序链表

Merge two sorted linked lists by splicing nodes into one sorted list using linked-list pointer manipulation and recursio…

简单
23

合并 K 个升序链表

Merge k Sorted Lists requires efficiently combining multiple sorted linked lists into one using pointers and priority qu…

困难
24

两两交换链表中的节点

Learn how to swap every adjacent linked-list pair by rewiring nodes safely without changing values or breaking the remai…

中等
25

K 个一组翻转链表

Reverse Nodes in k-Group challenges you to reverse segments of a linked list in groups of size k.

困难
61

旋转链表

Rotate a singly linked list to the right by k positions using careful pointer manipulation and two-pointer traversal tec…

中等
82

删除排序链表中的重复元素 II

Remove duplicates from a sorted linked list, leaving only distinct values, and return the modified list in sorted order.

中等
83

删除排序链表中的重复元素

Efficiently remove duplicates from a sorted linked list using precise pointer manipulation while maintaining node order …

简单
86

分隔链表

Partition a linked list such that all nodes less than x come before nodes greater than or equal to x while preserving re…

中等
92

反转链表 II

Reverse a segment of a singly linked list from position left to right using precise pointer manipulation techniques.

中等
109

有序链表转换二叉搜索树

Convert a sorted singly linked list into a height-balanced BST using pointer manipulation and divide-and-conquer recursi…

中等
114

二叉树展开为链表

Flatten a binary tree into a right-skewed linked list by manipulating pointers following a pre-order traversal, handling…

中等
116

填充每个节点的下一个右侧节点指针

Connect each node across every level by reusing established next links to traverse a perfect binary tree without extra q…

中等
117

填充每个节点的下一个右侧节点指针 II

Populate each next pointer in a binary tree to its immediate right node, handling nulls and uneven levels efficiently us…

中等
138

随机链表的复制

This problem requires copying a linked list where each node has a random pointer in addition to the next pointer.

中等
141

环形链表

Determine if a given linked list contains a cycle using pointer manipulation or hashing, focusing on detecting repeated …

简单
142

环形链表 II

Identify the start of a cycle in a linked list using pointer manipulation, efficiently handling edge cases without modif…

中等
143

重排链表

Reorder List requires careful pointer manipulation in a singly linked list to interleave nodes from the ends without alt…

中等
146

LRU 缓存

Implement an efficient LRU Cache using hash table and doubly-linked list to achieve O(1) operations for get and put.

中等
147

对链表进行插入排序

Sort a singly linked list using insertion sort by carefully manipulating pointers to maintain a sorted order efficiently…

中等
148

排序链表

Sort List requires sorting a singly linked list efficiently using pointer manipulation and merge sort for optimal perfor…

中等
160

相交链表

Given two linked lists, find the node where they intersect or return null if they do not.

简单
203

移除链表元素

Remove all nodes from a linked list that have a specific value, adjusting pointers to preserve the rest of the list.

简单

swap_vert在题库框内继续向下滚动,也会自动续载

关联高频模式

LeetCode 链表题型题解:66题训练路线