- 博客(7)
- 收藏
- 关注
原创 LeetCode Daily Challenge#Day 06--Hashmap (454,383,15)
🗓️Day 06 – Hashmap Topics: Hashmap Problem solved: #454 - 4Sum II #383 - ransom Note #15 - 3SumlinkGiven four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuplessuch that:If we want to get 0, then we need a positive
2025-11-26 21:49:20
881
原创 LeetCode Daily Challenge#Day 05--Hashmap (242,349,202)
🗓️Day 05 – Hashmap Topics: Hashmap Problem solved: #242 - Valid Anagram #349 - Intersection of two arrays #202 - Happy NumberA Hashmap is a mapping structure from key to value, which uses a hash function to convert the key into array index, achieving:lin
2025-11-25 19:40:53
1016
原创 LeetCode Daily Challenge#Day 02--Arrays (209,59)
📝 摘要:数组与双指针技巧 本次学习围绕双指针技巧在数组问题中的应用,重点解决了两道LeetCode题目: 209. 长度最小的子数组 使用滑动窗口(双指针变体)在O(n)时间内找到满足和≥target的最短连续子数组 关键:动态调整窗口边界,维护当前和与最小长度 59. 螺旋矩阵II 通过分层填充法生成n×n螺旋矩阵 按圈层循环处理,控制填充方向(右→下→左→上)和边界收缩 核心知识点: 双指针适用场景:有序数组、子数组问题、序列合并、快慢指针等 滑动窗口能有效降低时间复杂度(如从O(n²)→O(n))
2025-11-21 22:30:37
560
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅