摘要: leetCode常用数据结构题单 1. 前缀和 1.1 前缀和基础 模板区域和检索-数组不可变 记数组的前缀和\(sums_i\)为下标\([0,i)\)的子数组的和 class NumArray { public: vector<int> sums; NumArray(vector<int>& n 阅读全文
posted @ 2025-06-11 22:14 zerolt 阅读(20) 评论(0) 推荐(0)