In AKS, the absolute maximum number of nodes that a cluster can have depends on a few configurations, including whether the node is in a VM State Set ...
分类:
其他好文 时间:
2021-01-08 11:41:16
阅读次数:
0
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
题目 给你一个字符串 s ,请你去除字符串中重复的字母,使得每个字母只出现一次。需保证 返回结果的字典序最小(要求不能打乱其他字符的相对位置)。 注意:该题与 1081 https://leetcode-cn.com/problems/smallest-subsequence-of-distinct ...
分类:
其他好文 时间:
2020-12-25 11:41:11
阅读次数:
0
题目: 题目大意: 在数组中寻找和最大的一段连续的序列 思路: 用贪心的做法,从第一个开始,累加a[i],如果sum<0就把这一段给舍去掉,从新的起点开始,如果sum>max,则进行信息的更新 #include <iostream> using namespace std; const int MA ...
分类:
其他好文 时间:
2020-12-18 12:36:16
阅读次数:
2
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/longest-increasing-subsequence/ 进入正题。 题目: 给定一个无序的整数数组,找到其中最长上升子序列的长度。 示例: 输入: [10,9,2,5,3,7,101,18] ...
分类:
其他好文 时间:
2020-12-10 10:49:44
阅读次数:
2
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
\(Link\) Description 给一个长度为$n$的数列和$m$,在数列任选若干个数,使得他们的和对$m$取模后最大。 \(n ≤ 35, 1 ≤ m ≤ 10^9\) Solution $n$这么小,一看就知道要爆搜。但纯搜索是$O(2^n)$的,跑不过去。这时可以考虑$Meet\ in ...
分类:
其他好文 时间:
2020-11-19 12:16:10
阅读次数:
5
偶遇PC站网页,客户想在手机上查看(不是响应式那种,自然缩放那种): 直接以下代码: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes" ...
分类:
Web程序 时间:
2020-11-10 11:05:19
阅读次数:
18