会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wy0518
博客园
首页
新随笔
联系
订阅
管理
2025年12月11日
第51天(中等题 数据结构)
摘要: 打卡第五十一天 2道中等题 题目: 思路:前缀和+哈希表,同余定理 代码: int subarraysDivByK(vector<int>& nums, int k) { unordered_map<int,int> cnt; // 哈希表 int ans = 0, s = 0; // 答案计数、当
阅读全文
posted @ 2025-12-11 00:09 Wy0518
阅读(2)
评论(0)
推荐(0)
公告