摘要:
链接: 1343. 大小为 K 且平均值大于等于阈值的子数组数目 题解: 滑动窗口和前缀和 1. class Solution { public: int numOfSubarrays(vector<int>& arr, int k, int threshold) { //滑动窗口解法 int le 阅读全文
posted @ 2020-06-01 14:13
branna
阅读(169)
评论(0)
推荐(0)
摘要:
链接: 面试题53 - II. 0~n-1中缺失的数字 题解: 前缀异或或者二分 1. class Solution { public: int missingNumber(vector<int>& nums) { int size=nums.size(); int yi=0; for(int i= 阅读全文
posted @ 2020-06-01 13:43
branna
阅读(120)
评论(0)
推荐(0)
摘要:
题目链接:https://codeforces.com/contest/1363、 视频讲解链接:https://www.bilibili.com/video/BV1NC4y1a7si/(审核后可看) A. Odd Selection // // main.cpp // CF // // Creat 阅读全文
posted @ 2020-06-01 09:46
branna
阅读(215)
评论(0)
推荐(0)

浙公网安备 33010602011771号