技术栈

累积数组

Espresso Macchiato
7 个月前
leetcode·累积数组·leetcode 3354·leetcode easy·leetcode周赛424
Leetcode 3354. Make Array Elements Equal to Zero这一题是一道easy的题目,本来没想写的,因为完全可以暴力搞定,不过这里还是写了一下,因为这道题多少还是比较巧妙的,问题的描述一大把,事实上就是要分析在什么条件下可以使得数组归零,而这个的回答就是要求:
Espresso Macchiato
10 个月前
滑动窗口·leetcode hard·leetcode周赛411·leetcode 3261·累积数组
Leetcode 3261. Count Substrings That Satisfy K-Constraint II这一题我们首先可以仿照题目3258的方式通过一个滑动窗口快速得到每一个位置作为起点时其对应的最大K-Constraint的边界。