Skip to content

leetcode 题目分类 #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
swiftwind0405 opened this issue Oct 9, 2020 · 1 comment
Open

leetcode 题目分类 #10

swiftwind0405 opened this issue Oct 9, 2020 · 1 comment

Comments

@swiftwind0405
Copy link
Owner

swiftwind0405 commented Oct 9, 2020

双指针遍历/滑动窗口

26_删除排序数组中的重复项
42_接雨水
121_买卖股票的最佳时机
209_长度最小的子数组

快慢指针遍历

141_环形链表
202_快乐数
876_链表的中间结点

##字符串操作
6_Z字形变换
14_最长公共前缀
736_划分字母区间

数字操作

7_整数反转
8_字符串转换整数
9_回文数
43_字符串相乘
172_阶乘后的零
258_各位相加

数组操作

54_螺旋矩阵
73_矩阵置零
945_使数组唯一的最小增量

栈相关

32_最长有效括号
155_最小栈
224_基本计算器
316_去除重复字母

堆相关

215_数组中的第K个最大元素
347_前K个高频元素

递归

101_对称二叉树
104_二叉树的最大深度
226_翻转二叉树
236_二叉树的最近公共祖先

分治法/二分法

23_合并K个排序链表
33_搜索旋转排序数组
34_在排序数组中查找元素的第一个和最后一个位置

动态规划

5_最长回文子串
53_最大子序和
62_不同路径
64_最小路径和
70_爬楼梯
118_杨辉三角
300_最长上升子序列
746_使用最小花费爬楼梯
1277_统计全为1的正方形子矩阵

树的遍历

94_二叉树的中序遍历
102_二叉树的层次遍历
110_平衡二叉树
144_二叉树的前序遍历
145_二叉树的后序遍历

二叉搜索树相关

98_验证二叉搜索树
450_删除二叉搜索树中的节点
701_二叉搜索树中的插入操作

@swiftwind0405 swiftwind0405 pinned this issue Oct 9, 2020
@swiftwind0405
Copy link
Owner Author

swiftwind0405 commented Oct 14, 2020

方法一:

解题思想:

代码:

复杂度分析:

  • 时间复杂度:
  • 空间复杂度:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant