01 2023 档案

摘要:代码随想录算法训练营第八天|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)
摘要:代码随想录算法训练营第七天|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)
摘要:代码随想录算法训练营第六天|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)
摘要:代码随想录算法训练营第五天|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)
摘要:代码随想录算法训练营第四天|LeetCode24,19,02.07,142 LeetCode 24 两两交换链表中的节点 题目链接:https://leetcode.cn/problems/swap-nodes-in-pairs/description/ //采用虚拟头节点 /** * Defini 阅读全文
posted @ 2023-01-01 23:41 shadowbringerw 阅读(489) 评论(0) 推荐(0)