CF375 CF375A Divisible by Seven luogu 注意到 \(1,9,8,6\) 全排列可以得到所有 \(\bmod 7\) 的余数。 然后别的数随便排,这四个数选个排法就好了。 aclink CF375B Maximum Submatrix 2 luogu 方法 \(1\ ...
分类:
其他好文 时间:
2021-01-08 11:14:45
阅读次数:
0
1、单页面,head标签里增加属性: <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=3.5, user-scalable=yes"> /*注释*/ ...
分类:
移动开发 时间:
2021-01-07 11:54:59
阅读次数:
0
题目链接:https://leetcode-cn.com/problems/sliding-window-maximum/ 题意:在一个数组上有一个长度为k的滑动窗口,每次向右移一位,求滑动窗口的最大值。 分析:首先要明确一个概念,每次滑动窗口加入一个值后,当前窗口内所有比它小的值都不可能当最大值了 ...
分类:
其他好文 时间:
2021-01-05 11:29:00
阅读次数:
0
递归是以自相似的方式重复项目的处理过程。同样地,在编程语言中,在函数内部调用函数自身,称为递归调用。如下: void recursion(){ recursion(); /* 函数调用自身 */}int main(){ recursion();} C 语言支持递归,即,一个函数可以调用自身。但在使用 ...
分类:
编程语言 时间:
2021-01-02 11:07:51
阅读次数:
0
题目: 题目大意: 在数组中寻找和最大的一段连续的序列 思路: 用贪心的做法,从第一个开始,累加a[i],如果sum<0就把这一段给舍去掉,从新的起点开始,如果sum>max,则进行信息的更新 #include <iostream> using namespace std; const int MA ...
分类:
其他好文 时间:
2020-12-18 12:36:16
阅读次数:
2
int cmp(const void* a, const void* b){ return *(int*)a - *(int*)b; } void recursion(int* nums, int numsSize, int* returnSize, int* returnColumnSizes, ...
分类:
其他好文 时间:
2020-12-15 12:32:10
阅读次数:
3
......data: () => ({ // 数据 dt: [{ id: '1', children: [ { id: '1-1', children: [ { id: '1-1-1', children: [] } ] }, { id: '1-2', children: [ { id: '1-2 ...
分类:
编程语言 时间:
2020-12-05 10:47:29
阅读次数:
7
void recursion(int* t, int minute, int hour, int n, int cur, int start, char** arr, int* pst){ if (minute >= 60 || hour >= 12) return; if (cur == n){ ...
分类:
其他好文 时间:
2020-12-04 10:57:49
阅读次数:
8
在controller返回数据到统一json转换的时候,出现了json infinite recursion stackoverflowerror的错误,即json在将对象转换为json格式的数据的时候,出现了无限递归调用的情况。 @JsonBackReference @JsonManagedRef ...
分类:
Web程序 时间:
2020-12-03 11:58:28
阅读次数:
10
Linear Time: O(n) Linear time. Running time is proportional to input size. (线性时间: 运行时间与输入大小成正比) <1>Computing the maximum. Compute maximum of n numbers ...
分类:
其他好文 时间:
2020-11-19 12:24:55
阅读次数:
4