数据结构与算法
YaoGod
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
<Talk is cheap, show me the code 40> Leetcode.349 两个数组的交集
【代码】<Talk is cheap, show me the code 40> Leetcode.349 两个数组的交集。原创 2024-07-18 19:55:34 · 188 阅读 · 0 评论 -
<Talk is cheap, show me the code 39> Leetcode.142 环形链表 II
【代码】<Talk is cheap, show me the code 39> Leetcode.142 环形链表 II。原创 2024-07-18 10:46:46 · 157 阅读 · 0 评论 -
<Talk is cheap, show me the code 38> 链表相交
【代码】<Talk is cheap, show me the code 38> 链表相交。原创 2024-07-16 17:18:05 · 405 阅读 · 0 评论 -
<Talk is cheap, show me the code 37> LeetCode.19 删除链表的倒数第N个结点
【代码】<Talk is cheap, show me the code 37> LeetCode.19 删除链表的倒数第N个结点。原创 2024-07-16 00:14:36 · 189 阅读 · 0 评论 -
<Talk is cheap, show me the code 36> LeetCode.24 两两交换链表中的节点
【代码】<Talk is cheap, show me the code 36> LeetCode.24 两两交换链表中的节点。原创 2024-07-13 22:17:21 · 177 阅读 · 0 评论 -
<Talk is cheap, show me the code 35> LeetCode.206 反转链表
【代码】<Talk is cheap, show me the code 35> LeetCode.206 两个字符串的删除操作。原创 2024-07-12 15:50:09 · 184 阅读 · 0 评论 -
<Talk is cheap, show me the code 34> LeetCode.583 两个字符串的删除操作
【代码】<Talk is cheap, show me the code 34> LeetCode.583 两个字符串的删除操作。原创 2024-07-12 15:25:33 · 174 阅读 · 0 评论 -
<Talk is cheap, show me the code 33> LeetCode.203 移除链表元素
【代码】<Talk is cheap, show me the code 33> LeetCode.203 移除链表元素。原创 2024-07-11 20:20:53 · 348 阅读 · 0 评论 -
<Talk is cheap, show me the code 32> LeetCode.209 长度最小的子数组
【代码】<Talk is cheap, show me the code 32> LeetCode.209 长度最小的子数组。原创 2024-07-11 16:35:43 · 137 阅读 · 0 评论 -
<Talk is cheap, show me the code 31> LeetCode.115 不同的子序列
【代码】<Talk is cheap, show me the code 31> LeetCode.115 不同的子序列。原创 2024-07-11 15:09:35 · 450 阅读 · 0 评论 -
<Talk is cheap, show me the code 30> LeetCode.977 有序数组的平方
【代码】<Talk is cheap, show me the code 30> LeetCode.977 有序数组的平方。原创 2024-07-10 16:58:12 · 218 阅读 · 0 评论 -
<Talk is cheap, show me the code 29> LeetCode.392 判断子序列
【代码】<Talk is cheap, show me the code 29> LeetCode.392 判断子序列。原创 2024-07-10 16:16:46 · 169 阅读 · 0 评论 -
<Talk is cheap, show me the code 28> LeetCode.53 最大子数组和
【代码】<Talk is cheap, show me the code 28> LeetCode.53 最大子数组和。原创 2024-07-10 15:48:55 · 174 阅读 · 0 评论 -
<Talk is cheap, show me the code 27> LeetCode.27 移除元素
【代码】<Talk is cheap, show me the code 27> LeetCode.27 移除元素。原创 2024-07-09 16:54:43 · 473 阅读 · 0 评论 -
<Talk is cheap, show me the code 26> LeetCode.1035 不相交的线
【代码】<Talk is cheap, show me the code 26> LeetCode.1035 不相交的线。原创 2024-07-09 16:10:22 · 171 阅读 · 0 评论 -
<Talk is cheap, show me the code 25> LeetCode.704 二分查找
【代码】<Talk is cheap, show me the code 25> LeetCode.704 二分查找。原创 2024-07-08 11:42:54 · 140 阅读 · 0 评论 -
<Talk is cheap, show me the code 21> LeetCode.300 最长递增子序列
【代码】<Talk is cheap, show me the code 21> LeetCode.300 最长递增子序列。原创 2024-07-05 14:35:52 · 189 阅读 · 0 评论 -
<Talk is cheap, show me the code 22> LeetCode.674 最长连续递增序列
【代码】<Talk is cheap, show me the code 22> LeetCode.674 最长连续递增序列。原创 2024-07-06 18:28:39 · 152 阅读 · 0 评论 -
<Talk is cheap, show me the code 23> LeetCode.718 最长重复子数组
【代码】<Talk is cheap, show me the code 22> LeetCode.674 最长连续递增序列。原创 2024-07-08 11:03:50 · 176 阅读 · 0 评论 -
<Talk is cheap, show me the code 24> LeetCode.1143 最长公共子序列
【代码】<Talk is cheap, show me the code 24> LeetCode.1143 最长公共子序列。原创 2024-07-08 11:30:10 · 160 阅读 · 0 评论 -
<Talk is cheap, show me the code 20> LeetCode.121 买卖股票的最佳时机
【代码】<Talk is cheap, show me the code 20> LeetCode.121 买卖股票的最佳时机。原创 2024-07-03 19:09:37 · 155 阅读 · 0 评论 -
<Talk is cheap, show me the code 19> LeetCode.213 打家劫舍 II
【代码】<Talk is cheap, show me the code 19> LeetCode.213 打家劫舍 II。原创 2024-07-02 19:53:53 · 189 阅读 · 0 评论 -
<Talk is cheap, show me the code 18> LeetCode.198 打家劫舍
【代码】<Talk is cheap, show me the code 18> LeetCode.198 打家劫舍。原创 2024-07-02 18:59:13 · 377 阅读 · 0 评论 -
<Talk is cheap, show me the code 17> LeetCode.279 完全平方数
【代码】<Talk is cheap, show me the code 17> LeetCode.279 完全平方数。原创 2024-06-30 23:44:10 · 135 阅读 · 0 评论 -
<Talk is cheap, show me the code 16> LeetCode.322 零钱兑换
【代码】<Talk is cheap, show me the code 16> LeetCode.322 零钱兑换。原创 2024-06-30 19:52:45 · 314 阅读 · 0 评论 -
<Talk is cheap, show me the code 15> 卡玛网.57 爬楼梯
【代码】<Talk is cheap, show me the code 15> 卡玛网.57 爬楼梯。原创 2024-06-30 00:22:31 · 213 阅读 · 0 评论 -
<Talk is cheap, show me the code 14> LeetCode.377 组合总和 IV
if(j >= nums[i] && dp[j] < INT_MAX - dp[j - nums[i]]) //dp[j]溢出,不加入该元素。j ++){ //组合中元素没有顺序要求,因此要先遍历元素总和j再遍历每个元素。dp[j] : 从nums中选择元素,元素可放回,总和为j的最大元素组合数。dp[j] = max(不选择该元素,选择该元素)原创 2024-06-29 14:57:36 · 294 阅读 · 0 评论 -
<Talk is cheap, show me the code 13> LeetCode.518 零钱兑换
【代码】<Talk is cheap, show me the code 13> LeetCode.518 零钱兑换。原创 2024-06-28 16:27:36 · 164 阅读 · 0 评论 -
<Talk is cheap, show me the code 12> 完全背包问题
【代码】<Talk is cheap, show me the code 11> 完全背包问题。原创 2024-06-28 15:55:39 · 145 阅读 · 0 评论 -
<Talk is cheap, show me the code 11> LeetCode.474 一和零
dp[i][j] : 表示在strs数组中选,同时保证0的数量原创 2024-06-27 20:13:38 · 314 阅读 · 0 评论 -
<Talk is cheap, show me the code 10> LeetCode.494 目标和
【代码】<Talk is cheap, show me the code 09> LeetCode.494 目标和。原创 2024-06-27 11:46:53 · 181 阅读 · 0 评论 -
<Talk is cheap, show me the code 09> LeetCode.1049 最后一块石头的重量 II
【代码】<Talk is cheap, show me the code 09> LeetCode.1049 最后一块石头的重量 II。原创 2024-06-26 21:53:19 · 158 阅读 · 0 评论 -
<Talk is cheap, show me the code 08> LeetCode.416 分割等和子集
【代码】<Talk is cheap, show me the code 08> LeetCode.416 分割等和子集。原创 2024-06-26 19:39:52 · 154 阅读 · 0 评论 -
<Talk is cheap, show me the code 07>01背包问题
【代码】<Talk is cheap, show me the code 07>01背包问题。原创 2024-06-26 14:13:41 · 161 阅读 · 0 评论 -
<Talk is cheap, show me the code 06> LeetCode.96 不同的二叉搜索树
【代码】<Talk is cheap, show me the code 06> LeetCode.96 不同的二叉搜索树。原创 2024-06-26 00:24:24 · 169 阅读 · 0 评论 -
<Talk is cheap, show me the code 05> LeetCode.343 整数拆分
【代码】<Talk is cheap, show me the code 03> LeetCode.343 整数拆分。原创 2024-06-25 17:48:32 · 179 阅读 · 0 评论 -
<Talk is cheap, show me the code 04> LeetCode.63 不同路径 II
【代码】<Talk is cheap, show me the code 03> LeetCode.63 不同路径 II。原创 2024-06-25 14:45:11 · 161 阅读 · 0 评论 -
<Talk is cheap, show me the code 03> LeetCode.62 不同路径
【代码】<Talk is cheap, show me the code 02> LeetCode.62 不同路径。原创 2024-06-24 23:39:06 · 187 阅读 · 0 评论 -
<Talk is cheap, show me the code 02> LeetCode.746 使用最小花费爬楼梯
【代码】<Talk is cheap, show me the code 01> LeetCode.746 使用最小花费爬楼梯。原创 2024-06-24 16:10:58 · 389 阅读 · 0 评论 -
<Talk is cheap, show me the code 01> LeetCode.70 爬楼梯
仅用代码展示题解,帮助读者快速了解算法原创 2024-06-24 16:10:06 · 178 阅读 · 0 评论
分享