摘要: https://leetcode.cn/problems/count-submatrices-with-top-left-element-and-sum-less-than-k/description/ int countSubmatrices(int** grid, int gridSize, i 阅读全文
posted @ 2024-11-20 22:24 BiankaShenhen 阅读(8) 评论(0) 推荐(1) 编辑
摘要: https://leetcode.cn/problems/corporate-flight-bookings/description/ int* corpFlightBookings(int** bookings, int bookingsSize, int* bookingsColSize, in 阅读全文
posted @ 2024-11-19 20:48 BiankaShenhen 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.cn/problems/check-if-all-the-integers-in-a-range-are-covered/description/ class Solution { public: bool isCovered(vector<vector>& ran 阅读全文
posted @ 2024-11-18 00:14 BiankaShenhen 阅读(1) 评论(0) 推荐(0) 编辑
摘要: https://www.luogu.com.cn/problem/P1102 include <bits/stdc++.h> define ll long long using namespace std; const int N = 2e5 + 10; int n , c; int a[N]; i 阅读全文
posted @ 2024-11-15 22:47 BiankaShenhen 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //https://www.luogu.com.cn/problem/P2249 include using namespace std; int n,m,q,a[1000005]; int find(int x) { int l=1,r=n; while (l<r) { int mid=l+(r- 阅读全文
posted @ 2024-11-14 22:13 BiankaShenhen 阅读(7) 评论(0) 推荐(1) 编辑
摘要: bool hasIncreasingSubarrays(int* nums, int numsSize, int k) { int i; for(i=0;i<=numsSize-(2*k);i++){ int tmp=i; while(tmp<i+k-1){ if(nums[tmp]<nums[tm 阅读全文
posted @ 2024-11-13 20:03 BiankaShenhen 阅读(7) 评论(0) 推荐(0) 编辑