上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 45 下一页
摘要: 链接: 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)
摘要: 题目链接:https://codeforces.com/contest/1359 题目讲解:https://www.bilibili.com/video/bv12z411v7WN 代码: A.Berland Poker // // main.cpp // CF // // Created by Ha 阅读全文
posted @ 2020-05-29 15:04 branna 阅读(255) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/1360 A.Minimal Square b站链接:https://www.bilibili.com/video/BV1b54y1D7Ra/ #include <stdio.h> #include <string.h> #in 阅读全文
posted @ 2020-05-25 15:37 branna 阅读(246) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 45 下一页