LeetCode 题解集合 Python

解答链接 题号 题名

LeetCode-Python-11. 盛最多水的容器

11 盛最多水的容器

LeetCode-Python-13. 罗马数字转整数

13 罗马数字转整数

LeetCode-Python-14. 最长公共前缀

14 最长公共前缀

LeetCode-Python-17. 电话号码的字母组合

17 电话号码的字母组合

LeetCode-Python-22. 括号生成

22 括号生成

LeetCode-Python-27. 移除元素

27 移除元素

LeetCode-Python-35. 搜索插入位置

35 搜索插入位置

LeetCode-Python-39. 组合总和

39 组合总和

LeetCode-Python-49. 字母异位词分组

49 字母异位词分组

LeetCode-Python-50. Pow(x, n)

50 Pow(x,n)

LeetCode-Python-53. 最大子序和

53 最大子序和

LeetCode-Python-56. 合并区间

56 合并区间

LeetCode-Python-62. 不同路径

62 不同路径

LeetCode-Python-64. 最小路径和

64 最小路径和

LeetCode-Python-67. 二进制求和

67 二进制求和

LeetCode-Python-73. 矩阵置零

73 矩阵置零

LeetCode-Python-77. 组合

77 组合

LeetCode-Python-78. 子集

78 子集

LeetCode-Python-88. 合并两个有序数组

88 合并两个有序数组

LeetCode-Python-90. 子集 II

90 子集II

LeetCode-Python-94. 二叉树的中序遍历

94 二叉树的中序遍历

LeetCode-Python-96. 不同的二叉搜索树

96 不同的二叉搜索树

LeetCode-Python-98. 验证二叉搜索树

98 验证二叉搜索树

LeetCode-Python-100. 相同的树

100 相同的树

LeetCode-Python-102. 二叉树的层次遍历

102 二叉树的层次遍历

LeetCode-Python-105. 从前序与中序遍历序列构造二叉树

105 从前序与中序遍历序列构造二叉树

LeetCode-Python-106. 从中序与后序遍历序列构造二叉树

106 从中序与后序遍历序列构造二叉树

LeetCode-Python-107. 二叉树的层次遍历 II

107 二叉树的层次遍历II

LeetCode-Python-111. 二叉树的最小深度

111 二叉树的最小深度

LeetCode-Python-112. 路径总和

112 路径总和

LeetCode-Python-120. 三角形最小路径和

120 三角形最小路径和

LeetCode-Python-121. 买卖股票的最佳时机

121 买卖股票的最佳时机

LeetCode-Python-129. 求根到叶子节点数字之和

129 求根到叶子节点数字之和

LeetCode-Python-145. 二叉树的后序遍历

145 二叉树的后序遍历

LeetCode-Python-150. 逆波兰表达式求值

150 逆波兰表达式求值

LeetCode-Python-154. 寻找旋转排序数组中的最小值 II

154 寻找旋转排序数组中的最小值II

LeetCode-Python-155. 最小栈

155 最小栈

LeetCode-Python-162. 寻找峰值

162 寻找峰值

LeetCode-Python-167. 两数之和 II - 输入有序数组

167 两数之和II-输入有序数组

LeetCode-Python-169. 求众数

169 求众数

LeetCode-Python-171. Excel表列序号

171 Excel表列序号

转 LeetCode-MySQL-175. 组合两个表

175 组合两个表

LeetCode-MySQL-181. 超过经理收入的员工

181 超过经理收入的员工

LeetCode-MySQL-182. 查找重复的电子邮箱

182 查找重复的电子邮箱

LeetCode-MySQL-183. 从不订购的客户

183 从不订购的客户

LeetCode-Python-187. 重复的DNA序列

187 重复的DNA序列

LeetCode-MySQL-197. 上升的温度

197 上升的温度

LeetCode-Python-198. 打家劫舍

198 打家劫舍

LeetCode-Python-199. 二叉树的右视图

199 二叉树的右视图

LeetCode-Python-200. 岛屿的个数

200 岛屿的个数

LeetCode-Python-202. 快乐数

202 快乐数

LeetCode-Python-209. 长度最小的子数组

209 长度最小的子数组

LeetCode-Python-215. 数组中的第K个最大元素

215 数组中的第K个最大元素

LeetCode-Python-216. 组合总和 III

216 组合总和III

LeetCode-Python-226. 翻转二叉树

226 翻转二叉树

LeetCode-Python-230. 二叉搜索树中第K小的元素

230 二叉搜索树中第K小的元素

LeetCode-Python-235. 二叉搜索树的最近公共祖先

235 二叉搜索树的最近公共祖先

LeetCode-Python-239. 滑动窗口最大值

239 滑动窗口最大值

LeetCode-Python-242. 有效的字母异位词

242 有效的字母异位词

LeetCode-Python-257. 二叉树的所有路径

257 二叉树的所有路径

LeetCode-Python-274. H指数

274 H指数

LeetCode-Python-275. H指数 II

275 H指数II

LeetCode-Python-287. 寻找重复数

287 寻找重复数

LeetCode-Python-290. 单词模式

290 单词模式

LeetCode-Python-300. 最长上升子序列

300 最长上升子序列

LeetCode-Python-303. 区域和检索 - 数组不可变

303 区域和检索-数组不可变

LeetCode-Python-322. 零钱兑换

322 零钱兑换

LeetCode-Python-338. 比特位计数

338 比特位计数

LeetCode-Python-345. 反转字符串中的元音字母

345 反转字符串中的元音字母

LeetCode-Python-347. 前K个高频元素

347 前K个高频元素

LeetCode-Python-349. 两个数组的交集

349 两个数组的交集

LeetCode-Python-367. 有效的完全平方数

367 有效的完全平方数

LeetCode-Python-371. 两整数之和

371 两整数之和

LeetCode-Python-374. 猜数字大小

374 猜数字大小

LeetCode-Python-376. 摆动序列

376 摆动序列

LeetCode-Python-383. 赎金信

383 赎金信

LeetCode-Python-389. 找不同

389 找不同

LeetCode-Python-404. 左叶子之和

404 左叶子之和

LeetCode-Python-409. 最长回文串

409 最长回文串

LeetCode-Python-410. 分割数组的最大值

410 分割数组的最大值

LeetCode-Python-415. 字符串相加

415 字符串相加

LeetCode-Python-429. N叉树的层序遍历

429 N叉树的层序遍历

LeetCode-Python-438. 找到字符串中所有字母异位词

438 找到字符串中所有字母异位词

LeetCode-Python-441. 排列硬币

441 排列硬币

LeetCode-Python-451. 根据字符出现频率排序

451 根据字符出现频率排序

LeetCode-Python-454. 四数相加 II

454 四数相加II

LeetCode-Python-455. 分发饼干

455 分发饼干

LeetCode-Python-476. 数字的补数

476 数字的补数

LeetCode-Python-485. 最大连续1的个数

485 最大连续1的个数

LeetCode-Python-495. 提莫攻击

495 提莫攻击

LeetCode-Python-496. 下一个更大元素 I

496 下一个更大元素I

LeetCode-Python-498. 对角线遍历

498 对角线遍历

LeetCode-Python-500. 键盘行

500 键盘行

LeetCode-Python-507. 完美数

507 完美数

LeetCode-Python-509. 斐波那契数

509 斐波那契数

LeetCode-Python-513. 找树左下角的值

513 找树左下角的值

LeetCode-Python-515. 在每个树行中找最大值

515 在每个树行中找最大值

LeetCode-Python-520. 检测大写字母

520 检测大写字母

LeetCode-Python-537. 复数乘法

537 复数乘法

LeetCode-Python-540. 有序数组中的单一元素

540 有序数组中的单一元素

LeetCode-Python-551. 学生出勤记录 I

551 学生出勤记录I

LeetCode-Python-557. 反转字符串中的单词 III

557 反转字符串中的单词III

LeetCode-Python-559. N叉树的最大深度

559 N叉树的最大深度

LeetCode-Python-575. 分糖果

575 分糖果

LeetCode-Python-589. N叉树的前序遍历

589 N叉树的前序遍历

LeetCode-Python-590. N叉树的后序遍历

590 N叉树的后序遍历

LeetCode-Python-617. 合并二叉树

617 合并二叉树

LeetCode-Python-622. 设计循环队列

622 设计循环队列

LeetCode-Python-637. 二叉树的层平均值

637 二叉树的层平均值

LeetCode-Python-654. 最大二叉树

654 最大二叉树

LeetCode-Python-700. 二叉搜索树中的搜索

700 二叉搜索树中的搜索

LeetCode-Python-704. 二分查找

704 二分查找

LeetCode-Python-706. 设计哈希映射

706 设计哈希映射

LeetCode-Python-724. 寻找数组的中心索引

724 寻找数组的中心索引

LeetCode-Python-728. 自除数

728 自除数

LeetCode-Python-739. 每日温度

739 每日温度

LeetCode-Python-744. 寻找比目标字母大的最小字母

744 寻找比目标字母大的最小字母

LeetCode-Python-746. 使用最小花费爬楼梯

746 使用最小花费爬楼梯

LeetCode-Python-747. 至少是其他数字两倍的最大数

747 至少是其他数字两倍的最大数

LeetCode-Python-763. 划分字母区间

763 划分字母区间

LeetCode-Python-784. 字母大小写全排列

784 字母大小写全排列

LeetCode-Python-791. 自定义字符串排序

791 自定义字符串排序

LeetCode-Python-804. 唯一摩尔斯密码词

804 唯一摩尔斯密码词

LeetCode-Python-814. 二叉树剪枝

814 二叉树剪枝

LeetCode-Python-821. 字符的最短距离

821 字符的最短距离

LeetCode-Python-824. 山羊拉丁文

824 山羊拉丁文

LeetCode-Python-832. 翻转图像

832 翻转图像

LeetCode-Python-840. 矩阵中的幻方

840 矩阵中的幻方

LeetCode-Python-841. 钥匙和房间

841 钥匙和房间

LeetCode-Python-844. 比较含退格的字符串

844 比较含退格的字符串

LeetCode-Python-849. 到最近的人的最大距离

849 到最近的人的最大距离

LeetCode-Python-852. 山脉数组的峰顶索引

852 山脉数组的峰顶索引

LeetCode-Python-860. 柠檬水找零

860 柠檬水找零

LeetCode-Python-875. 爱吃香蕉的珂珂

875 爱吃香蕉的珂珂

LeetCode-Python-877. 石子游戏

877 石子游戏

LeetCode-Python-884. 两句话中的不常见单词

884 两句话中的不常见单词

LeetCode-Python-888. 公平的糖果交换

888 公平的糖果交换

LeetCode-Python-896. 单调数列

896 单调数列

LeetCode-Python-897. 递增顺序查找树

897 递增顺序查找树

LeetCode-Python-905. 按奇偶排序数组

905 按奇偶排序数组

LeetCode-Python-929. 独特的电子邮件地址

929 独特的电子邮件地址

LeetCode-Python-931. 下降路径最小和

931 下降路径最小和

LeetCode-Python-942. 增减字符串匹配

942 增减字符串匹配

LeetCode-Python-944. 删列造序

944 删列造序

LeetCode-Python-946. 验证栈序列

946 验证栈序列

LeetCode-Python-961. 重复 N 次的元素

961 重复N次的元素

LeetCode-Python-965. 单值二叉树

965 单值二叉树

LeetCode-Python-969. 煎饼排序

969 煎饼排序

LeetCode-Python-970. 强整数

970 强整数

LeetCode-Python-976. 三角形的最大周长

976 三角形的最大周长

LeetCode-Python-977. 有序数组的平方

977 有序数组的平方

LeetCode-Python-985. 查询后的偶数和

985 查询后的偶数和

LeetCode-Python-993. 二叉树的堂兄弟节点

993 二叉树的堂兄弟节点

LeetCode-Python-997. 找到小镇的法官

997 找到小镇的法官

LeetCode-Python-998. 最大二叉树 II

998 最大二叉树II

LeetCode-Python-999. 车的可用捕获量

999 车的可用捕获量

LeetCode-Python-1002. 查找常用字符

1002 查找常用字符

LeetCode-Python-1003. 检查替换后的词是否有效

1003 检查替换后的词是否有效

LeetCode-Python-1004. 最大连续1的个数 III

1004 最大连续1的个数III

LeetCode-Python-1005. K 次取反后最大化的数组和

1005 K次取反后最大化的数组和

LeetCode-Python-1006. 笨阶乘

1006 笨阶乘

LeetCode-Python-1007. 行相等的最少多米诺旋转

1007 行相等的最少多米诺旋转

LeetCode-Python-1008. 先序遍历构造二叉树

1008 先序遍历构造二叉树

LeetCode-Python-1012. 十进制整数的反码

1012 十进制整数的反码

LeetCode-Python-1013. 总持续时间可被 60 整除的歌曲

1013 总持续时间可被60整除的歌曲

LeetCode-Python-1014. 在 D 天内送达包裹的能力

1014 在D天内送达包裹的能力

LeetCode-Python-1020. 将数组分成和相等的三个部分

1020 将数组分成和相等的三个部分

LeetCode-Python-1021. 最佳观光组合

1021 最佳观光组合

LeetCode-Python-1022. 可被 K 整除的最小整数

1022 可被K整除的最小整数

LeetCode-Python-1023. 子串能表示从 1 到 N 数字的二进制串

1023 子串能表示从1到N数字的二进制串
     

猜你喜欢

转载自blog.csdn.net/qq_32424059/article/details/88855423