会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shadowbringer
博客园
首页
新随笔
联系
订阅
管理
2023年1月9日
代码随想录算法训练营第八天LeetCode28, 459
摘要: 代码随想录算法训练营第八天|LeetCode28,459 Leetcode 28 找出字符串中第一个匹配项的下标 题目链接:https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/descript
阅读全文
posted @ 2023-01-09 23:08 shadowbringerw
阅读(48)
评论(0)
推荐(0)
2023年1月5日
代码随想录算法训练营第七天LeetCode344, 541, 剑指Offer 05, 151, 剑指Offer58-II
摘要: 代码随想录算法训练营第七天|LeetCode344, 541, **剑指Offer 05, **151, 剑指Offer58-II LeetCode 344 反转字符串 题目链接:https://leetcode.cn/problems/reverse-string/description/ //双
阅读全文
posted @ 2023-01-05 22:03 shadowbringerw
阅读(32)
评论(0)
推荐(0)
2023年1月4日
代码随想录算法训练营第六天LeetCode454,383,15,18
摘要: 代码随想录算法训练营第六天|LeetCode454,383,15,18 LeetCode 454 四数相加II 题目链接:https://leetcode.cn/problems/4sum-ii/description/ //对排序无要求所以使用hash表 class Solution { publ
阅读全文
posted @ 2023-01-04 21:53 shadowbringerw
阅读(162)
评论(0)
推荐(0)
2023年1月2日
代码随想录算法训练营第五天LeetCode242,349,202,1
摘要: 代码随想录算法训练营第五天|LeetCode242,349,202,1 LeetCode 242 有效的字母异位词 题目链接:https://leetcode.cn/problems/valid-anagram/description/ //开了两个哈希数组,两个哈希数组进行比较 class Sol
阅读全文
posted @ 2023-01-02 22:05 shadowbringerw
阅读(57)
评论(0)
推荐(0)
2023年1月1日
代码随想录算法训练营第四天LeetCode24,19,02
摘要: 代码随想录算法训练营第四天|LeetCode24,19,02.07,142 LeetCode 24 两两交换链表中的节点 题目链接:https://leetcode.cn/problems/swap-nodes-in-pairs/description/ //采用虚拟头节点 /** * Defini
阅读全文
posted @ 2023-01-01 23:41 shadowbringerw
阅读(488)
评论(0)
推荐(0)
2022年12月30日
代码随想录算法训练营第三天LeetCode203,707,206
摘要: 代码随想录算法训练营第三天|LeetCode203,707,206 LeetCode 203 移除链表元素 题目链接:https://leetcode.cn/problems/remove-linked-list-elements/description/ //区分了删除头结点元素和删除非头结点元素
阅读全文
posted @ 2022-12-30 23:13 shadowbringerw
阅读(86)
评论(0)
推荐(0)
代码随想录算法训练营第二天LeetCode977, 209, 59
摘要: 代码随想录算法训练营第二天|LeetCode977, 209, 59 LeetCode 977 有序数组的平方 题目链接:https://leetcode.cn/problems/squares-of-a-sorted-array/ //使用stl的排序,毫无算法思想 class Solution
阅读全文
posted @ 2022-12-30 00:14 shadowbringerw
阅读(873)
评论(0)
推荐(0)
2022年12月28日
代码随想录算法训练营第一天LeetCode704,35,34,27
摘要: 代码随想录算法训练营第一天|LeetCode704,35,34,27 LeetCode 704 二分查找 题目链接:https://leetcode.cn/problems/binary-search/ //第一次做还不知道二分中的左闭右开和左闭右闭指什么,于是写了很多边界条件辅助判断 class
阅读全文
posted @ 2022-12-28 23:17 shadowbringerw
阅读(30)
评论(0)
推荐(0)
公告