随笔分类 -  算法

摘要:198. 打家劫舍 题目链接:https://leetcode.cn/problems/house-robber/ 文章讲解:https://programmercarl.com/0198.打家劫舍.html 题目难度:中等 视频讲解:https://www.bilibili.com/video/B 阅读全文
posted @ 2024-08-10 09:23 云雀AC了一整天 阅读(33) 评论(0) 推荐(1) 编辑
摘要:322. 零钱兑换 题目链接:https://leetcode.cn/problems/coin-change/ 文章讲解:https://programmercarl.com/0322.零钱兑换.html 题目难度:中等 视频讲解:https://www.bilibili.com/video/BV 阅读全文
posted @ 2024-08-09 10:31 云雀AC了一整天 阅读(25) 评论(0) 推荐(1) 编辑
摘要:52. 携带研究材料 题目链接:https://kamacoder.com/problempage.php?pid=1052 文章讲解:https://programmercarl.com/背包问题理论基础完全背包.html 视频讲解:https://www.bilibili.com/video/B 阅读全文
posted @ 2024-08-08 09:10 云雀AC了一整天 阅读(21) 评论(0) 推荐(1) 编辑
摘要:1049. 最后一块石头的重量 II 题目链接:https://leetcode.cn/problems/last-stone-weight-ii/ 题目难度:中等 文章讲解:https://programmercarl.com/1049.最后一块石头的重量II.html 视频讲解:https:// 阅读全文
posted @ 2024-08-07 10:51 云雀AC了一整天 阅读(28) 评论(0) 推荐(1) 编辑
摘要:46. 携带研究材料(0-1背包问题) 题目链接:https://kamacoder.com/problempage.php?pid=1046 文章讲解:https://programmercarl.com/背包理论基础01背包-1.html 视频讲解:https://www.bilibili.co 阅读全文
posted @ 2024-08-06 10:57 云雀AC了一整天 阅读(23) 评论(0) 推荐(0) 编辑
摘要:62. 不同路径 题目链接:https://leetcode.cn/problems/unique-paths/ 题目难度:中等 文章讲解:https://programmercarl.com/0062.不同路径.html 视频讲解:https://www.bilibili.com/video/BV 阅读全文
posted @ 2024-08-05 09:20 云雀AC了一整天 阅读(22) 评论(0) 推荐(0) 编辑
摘要:1. 两数之和 题目链接:https://leetcode.cn/problems/two-sum/description/?envType=study-plan-v2&envId=top-100-liked 解题状态:通过 标签:数组、哈希表 思路: 通过创建一个哈希表来保存数组中的元素,每当遍历 阅读全文
posted @ 2024-08-04 15:19 云雀AC了一整天 阅读(24) 评论(0) 推荐(0) 编辑
摘要:509. 斐波那契数 题目链接:https://leetcode.cn/problems/fibonacci-number/ 题目难度:简单 文章讲解:https://programmercarl.com/0509.斐波那契数.html 视频讲解:https://www.bilibili.com/v 阅读全文
posted @ 2024-08-03 10:24 云雀AC了一整天 阅读(31) 评论(0) 推荐(0) 编辑
摘要:56. 合并区间 题目链接:https://leetcode.cn/problems/merge-intervals/ 题目难度:中等 文章讲解:https://programmercarl.com/0056.合并区间.html 视频讲解:https://www.bilibili.com/video 阅读全文
posted @ 2024-08-02 15:41 云雀AC了一整天 阅读(22) 评论(0) 推荐(0) 编辑
摘要:452. 用最少数量的箭引爆气球 题目链接:https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/ 题目难度:中等 文章讲解:https://programmercarl.com/0452.用最少数量的箭引爆气 阅读全文
posted @ 2024-08-01 22:05 云雀AC了一整天 阅读(24) 评论(0) 推荐(0) 编辑
摘要:134. 加油站 题目链接:https://leetcode.cn/problems/gas-station/ 题目难度:中等 文章讲解:https://programmercarl.com/0134.加油站.html 视频讲解:https://www.bilibili.com/video/BV1j 阅读全文
posted @ 2024-08-01 20:48 云雀AC了一整天 阅读(23) 评论(0) 推荐(0) 编辑
摘要:122. 买卖股票的最佳时机II 题目链接:https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/ 题目难度:中等 文章讲解:https://programmercarl.com/0122.买卖股票的最佳时机II.html 视 阅读全文
posted @ 2024-08-01 15:08 云雀AC了一整天 阅读(29) 评论(0) 推荐(0) 编辑
摘要:455. 分发饼干 题目链接:https://leetcode.cn/problems/assign-cookies/ 题目难度:简单 文章讲解:https://programmercarl.com/0455.分发饼干.html 视频讲解:https://www.bilibili.com/video 阅读全文
posted @ 2024-07-29 16:19 云雀AC了一整天 阅读(39) 评论(0) 推荐(0) 编辑
摘要:491. 非递减子序列 题目链接:https://leetcode.cn/problems/non-decreasing-subsequences/ 题目难度:中等 文章讲解:https://programmercarl.com/0491.递增子序列.html 视频讲解:https://www.bi 阅读全文
posted @ 2024-07-27 10:20 云雀AC了一整天 阅读(25) 评论(0) 推荐(0) 编辑
摘要:93. 复原 IP 地址 题目链接:https://leetcode.cn/problems/restore-ip-addresses/ 题目难度:中等 文章讲解:https://programmercarl.com/0093.复原IP地址.html 视频讲解:https://www.bilibil 阅读全文
posted @ 2024-07-26 16:26 云雀AC了一整天 阅读(22) 评论(0) 推荐(0) 编辑
摘要:39. 组合总和 题目链接:https://leetcode.cn/problems/combination-sum/ 题目难度:中等 文章讲解:https://programmercarl.com/0039.组合总和.html 视频讲解:https://www.bilibili.com/video 阅读全文
posted @ 2024-07-25 15:27 云雀AC了一整天 阅读(27) 评论(0) 推荐(0) 编辑
摘要:回溯算法模板 void backtracking(参数) { if (终止条件) { 存放结果; return; } for (选择:本层集合中元素(树中节点孩子的数量就是集合的大小)) { 处理节点; backtracking(路径,选择列表); // 递归 回溯,撤销处理结果 } } 77. 组 阅读全文
posted @ 2024-07-24 15:53 云雀AC了一整天 阅读(38) 评论(0) 推荐(0) 编辑
摘要:669. 修剪二叉搜索树 题目链接:https://leetcode.cn/problems/trim-a-binary-search-tree/ 题目难度:中等 文章讲解:https://programmercarl.com/0669.修剪二叉搜索树.html 视频讲解:https://www.b 阅读全文
posted @ 2024-07-23 09:09 云雀AC了一整天 阅读(26) 评论(0) 推荐(0) 编辑
摘要:235. 二叉搜索树的最近公共祖先 题目链接:https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-search-tree/ 题目难度:中等 文章讲解:https://programmercarl.com/0235.二叉搜索树 阅读全文
posted @ 2024-07-22 15:19 云雀AC了一整天 阅读(38) 评论(0) 推荐(0) 编辑
摘要:530. 二叉搜索树的最小绝对差 题目链接:https://leetcode.cn/problems/minimum-absolute-difference-in-bst/ 题目难度:简单 文章讲解:https://programmercarl.com/0530.二叉搜索树的最小绝对差.html 视 阅读全文
posted @ 2024-07-20 10:32 云雀AC了一整天 阅读(48) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示