2026-07-18Leetcode Hot 1002 分钟和为 K 的子数组LeetCode 560 题解:和为 K 的子数组。使用前缀和 + 哈希表优化,将时间复杂度从 O(n²) 降至 O(n)。LeetcodePython哈希表前缀和