题目索引
全部 100 道题按题型分组, 圆点标记阅读进度:蓝 = 已读,绿 = 已掌握。
哈希
双指针
滑动窗口
子串
普通数组
矩阵
链表
- 160相交链表Intersection of Two Linked Lists简单
- 206反转链表Reverse Linked List简单
- 234回文链表Palindrome Linked List简单
- 141环形链表Linked List Cycle简单
- 142环形链表 IILinked List Cycle II中等
- 21合并两个有序链表Merge Two Sorted Lists简单
- 2两数相加Add Two Numbers中等
- 19删除链表的倒数第 N 个结点Remove Nth Node From End of List中等
- 24两两交换链表中的节点Swap Nodes in Pairs中等
- 25K 个一组翻转链表Reverse Nodes in k-Group困难
- 138随机链表的复制Copy List with Random Pointer中等
- 148排序链表Sort List中等
- 23合并 K 个升序链表Merge k Sorted Lists困难
- 146LRU 缓存LRU Cache中等
二叉树
- 94二叉树的中序遍历Binary Tree Inorder Traversal简单
- 104二叉树的最大深度Maximum Depth of Binary Tree简单
- 226翻转二叉树Invert Binary Tree简单
- 101对称二叉树Symmetric Tree简单
- 543二叉树的直径Diameter of Binary Tree简单
- 102二叉树的层序遍历Binary Tree Level Order Traversal中等
- 108将有序数组转换为二叉搜索树Convert Sorted Array to Binary Search Tree简单
- 98验证二叉搜索树Validate Binary Search Tree中等
- 230二叉搜索树中第 K 小的元素Kth Smallest Element in a BST中等
- 199二叉树的右视图Binary Tree Right Side View中等
- 114二叉树展开为链表Flatten Binary Tree to Linked List中等
- 105从前序与中序遍历序列构造二叉树Construct Binary Tree from Preorder and Inorder Traversal中等
- 437路径总和 IIIPath Sum III中等
- 236二叉树的最近公共祖先Lowest Common Ancestor of a Binary Tree中等
- 124二叉树中的最大路径和Binary Tree Maximum Path Sum困难