|
|
|
# LeetCode Topics and Interview Questions Collection
|
|
|
|
|
|
|
|
> [中文版](/README.md)
|
|
|
|
|
|
|
|
## Topics
|
|
|
|
|
|
|
|
### Hash
|
|
|
|
|
|
|
|
- [Question 1 : Two Sum](/src/hash相关/q1_两数之和)
|
|
|
|
- [Question 387 : First Unique Character in a String](/src/hash相关/q387_字符串中的第一个唯一字符)
|
|
|
|
|
|
|
|
### Linked List Operations
|
|
|
|
|
|
|
|
- [Question 2 : Add Two Numbers](/src/链表操作/q2_两数相加)
|
|
|
|
- [Question 19 : Remove Nth Node From End of List](/src/链表操作/q19_删除链表的倒数第N个节点)
|
|
|
|
- [Question 25 : Reverse Nodes in k-Group](/src/链表操作/q25_k个一组翻转链表)
|
|
|
|
- [Question 61 : Rotate List](/src/链表操作/q61_旋转链表)
|
|
|
|
- [Question 138 : Copy List with Random Pointer](/src/链表操作/q138_复制带随机指针的链表)
|
|
|
|
- [Question 206 : Reverse Linked List](/src/链表操作/q206_反转链表)
|
|
|
|
|
|
|
|
### Double Pointer Traversal / Sliding Window
|
|
|
|
|
|
|
|
- [Question 3 : Longest Substring Without Repeating Characters](/src/双指针遍历/q3_无重复字符的最长子串)
|
|
|
|
- [Question 11 : Container With Most Water](/src/双指针遍历/q11_盛最多水的容器)
|
|
|
|
- [Question 15 : 3Sum](/src/双指针遍历/q15_三数之和)
|
|
|
|
- [Question 16 : 3Sum Closest](/src/双指针遍历/q16_最接近的三数之和)
|
|
|
|
- [Question 26 : Remove Duplicates from Sorted Array](/src/双指针遍历/q26_删除排序数组中的重复项)
|
|
|
|
- [Question 42 : Trapping Rain Water](/src/双指针遍历/q42_接雨水)
|
|
|
|
- [Question 121 : Best Time to Buy and Sell Stock](/src/双指针遍历/q121_买卖股票的最佳时机)
|
|
|
|
- [Question 209 : Minimum Size Subarray Sum](/src/双指针遍历/q209_长度最小的子数组)
|
|
|
|
|
|
|
|
### Fast and Slow Pointer Traversal
|
|
|
|
|
|
|
|
- [Question 141 : Linked List Cycle](/src/快慢指针遍历/q141_环形链表)
|
|
|
|
- [Question 202 : Happy Number](/src/快慢指针遍历/q202_快乐数)
|
|
|
|
- [Question 876 : Middle of the Linked List](/src/快慢指针遍历/q876_链表的中间结点)
|
|
|
|
|
|
|
|
### Interval Merge
|
|
|
|
|
|
|
|
- [Question 56 : Merge Intervals](/src/区间合并/q56_合并区间)
|
|
|
|
|
|
|
|
### String Manipulation
|
|
|
|
|
|
|
|
- [Question 6 : ZigZag Conversion](/src/字符串操作/q6_Z字形变换)
|
|
|
|
- [Question 14 : Longest Common Prefix](/src/字符串操作/q14_最长公共前缀)
|
|
|
|
- [Question 763 : Partition Labels](/src/字符串操作/q763_划分字母区间)
|
|
|
|
|
|
|
|
### Digital Operations
|
|
|
|
|
|
|
|
- [Question 7 : Reverse Integer](/src/数字操作/q7_整数反转)
|
|
|
|
- [Question 8 : String to Integer (atoi)](/src/数字操作/q8_字符串转换整数)
|
|
|
|
- [Question 9 : Palindrome Number](/src/数字操作/q9_回文数)
|
|
|
|
- [Question 43 : Multiply Strings](/src/数字操作/q43_字符串相乘)
|
|
|
|
- [Question 172 : Factorial Trailing Zeroes](/src/数字操作/q172_阶乘后的零)
|
|
|
|
- [Question 258 : Add Digits](/src/数字操作/q258_各位相加)
|
|
|
|
|
|
|
|
### Array Operations
|
|
|
|
|
|
|
|
- [Question 54 : Spiral Matrix](/src/数组操作/q54_螺旋矩阵)
|
|
|
|
- [Question 73 : Set Matrix Zeroes](/src/数组操作/q73_矩阵置零)
|
|
|
|
- [Question 78 : Subsets](/src/数组操作/q78_子集)
|
|
|
|
- [Question 384 : Shuffle an Array](/src/数组操作/q384_打乱数组)
|
|
|
|
- [Question 581 : Shortest Unsorted Continuous Subarray](/src/数组操作/q581_最短无序连续子数组)
|
|
|
|
- [Question 945 : Minimum Increment to Make Array Unique](/src/数组操作/q945_使数组唯一的最小增量)
|
|
|
|
|
|
|
|
### Stack
|
|
|
|
|
|
|
|
- [Question 20 : Valid Parentheses](/src/栈相关/q20_有效的括号)
|
|
|
|
- [Question 32 : Longest Valid Parentheses](/src/栈相关/q32_最长有效括号)
|
|
|
|
- [Question 155 : Min Stack](/src/栈相关/q155_最小栈)
|
|
|
|
- [Question 224 : Basic Calculator](/src/栈相关/q224_基本计算器)
|
|
|
|
- [Question 232 : Implement Queue using Stacks](/src/栈相关/q232_用栈实现队列)
|
|
|
|
- [Question 316 : Remove Duplicate Letters](/src/栈相关/q316_去除重复字母)
|
|
|
|
|
|
|
|
### Heap
|
|
|
|
|
|
|
|
- [Question 215 : Kth Largest Element in an Array](/src/堆相关/q215_数组中的第K个最大元素)
|
|
|
|
- [Question 347 : Top K Frequent Elements](/src/堆相关/q347_前K个高频元素)
|
|
|
|
|
|
|
|
### Recursion
|
|
|
|
|
|
|
|
- [Question 21 : Merge Two Sorted Lists](/src/递归/q21_合并两个有序链表)
|
|
|
|
- [Question 101 : Symmetric Tree](/src/递归/q101_对称二叉树)
|
|
|
|
- [Question 104 : Maximum Depth of Binary Tree](/src/递归/q104_二叉树的最大深度)
|
|
|
|
- [Question 226 : Invert Binary Tree](/src/递归/q226_翻转二叉树)
|
|
|
|
- [Question 236 : Lowest Common Ancestor of a Binary Tree](/src/递归/q236_二叉树的最近公共祖先)
|
|
|
|
|
|
|
|
### Divide and Conquer / Dichotomy
|
|
|
|
|
|
|
|
- [Question 23 : Merge k Sorted Lists](/src/分治法/q23_合并K个排序链表)
|
|
|
|
- [Question 33 : Search in Rotated Sorted Array](/src/分治法/q33_搜索旋转排序数组)
|
|
|
|
- [Question 34 : Find First and Last Position of Element in Sorted Array](/src/分治法/q34_在排序数组中查找元素的第一个和最后一个位置)
|
|
|
|
|
|
|
|
### Dynamic Programming
|
|
|
|
|
|
|
|
- [Question 5 : Longest Palindromic Substring](/src/动态规划/q5_最长回文子串)
|
|
|
|
- [Question 53 : Maximum Subarray](/src/动态规划/q53_最大子序和)
|
|
|
|
- [Question 62 : Unique Paths](/src/动态规划/q62_不同路径)
|
|
|
|
- [Question 64 : Minimum Path Sum](/src/动态规划/q64_最小路径和)
|
|
|
|
- [Question 70 : Climbing Stairs](/src/动态规划/q70_爬楼梯)
|
|
|
|
- [Question 118 : Pascal's Triangle](/src/动态规划/q118_杨辉三角)
|
|
|
|
- [Question 300 : Longest Increasing Subsequence](/src/动态规划/q300_最长上升子序列)
|
|
|
|
- [Question 1143 : Longest Common Subsequence](/src/动态规划/q1143_最长公共子序列)
|
|
|
|
- [Question 1277 : Count Square Submatrices with All One](/src/动态规划/q1277_统计全为1的正方形子矩阵)
|
|
|
|
|
|
|
|
### Backtracking
|
|
|
|
|
|
|
|
- [Question 10 : Regular Expression Matching](/src/回溯法/q10_正则表达式匹配)
|
|
|
|
- [Question 22 : Generate Parentheses](/src/回溯法/q22_括号生成)
|
|
|
|
- [Question 40 : Combination Sum II](/src/回溯法/q40_组合总和2)
|
|
|
|
- [Question 46 : Permutations](/src/回溯法/q46_全排列)
|
|
|
|
|
|
|
|
### Tree Traversal
|
|
|
|
|
|
|
|
- [Question 94 : Binary Tree Inorder Traversal](/src/树的遍历/q94_二叉树的中序遍历)
|
|
|
|
- [Question 102 : Binary Tree Level Order Traversal](/src/树的遍历/q102_二叉树的层次遍历)
|
|
|
|
- [Question 110 : Balanced Binary Tree](/src/树的遍历/q110_平衡二叉树)
|
|
|
|
- [Question 144 : Binary Tree Preorder Traversal](/src/树的遍历/q144_二叉树的前序遍历)
|
|
|
|
- [Question 145 : Binary Tree Postorder Traversal](/src/树的遍历/q145_二叉树的后序遍历)
|
|
|
|
|
|
|
|
### Binary Search Trees
|
|
|
|
|
|
|
|
- [Question 98 : Validate Binary Search Tree](/src/二叉搜索树相关/q98_验证二叉搜索树)
|
|
|
|
- [Question 450 : Delete Node in a BST](/src/二叉搜索树相关/q450_删除二叉搜索树中的节点)
|
|
|
|
- [Question 701 : Insert into a Binary Search Tree](/src/二叉搜索树相关/q701_二叉搜索树中的插入操作)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Interview Questions Collection (CN)
|
|
|
|
|
|
|
|
- [Interview Questions Collection](/Rocket.md)
|