Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2019-05-12 01:33:00
阅读次数:
104
Let’s start with a very classical problem. Given an array a[1…n] of positive numbers, if the value of each element in the array is distinct, how to fi ...
分类:
其他好文 时间:
2019-05-09 20:14:59
阅读次数:
112
pmxcfs The Proxmox Cluster file system (“pmxcfs”) is a database-driven file system for storing configuration files, replicated in real time to all clu ...
分类:
其他好文 时间:
2019-05-08 16:02:38
阅读次数:
303
meta篇 1.视窗宽度 其中 width=device-width 是设置视窗宽度为设备视窗宽度,还可以固定宽度,例如: width=640 则是640px的宽度(常见于微信); initial-scale=1.0 :设置缩放比例为1.0; minimum-scale=1.0 和 maximum- ...
分类:
移动开发 时间:
2019-05-08 09:35:57
阅读次数:
158
移动布局: 1,移动设备 手机和ipad 安卓系统iOS系统 安卓系统 内置浏览器是谷歌,iOS内置safari浏览器,他们的内核都是webkit,不考虑兼容性,需要考虑的是安卓和iOS的区别 2,布局 设备宽度···设备的实际大小,设备的分辨率···厂家给的 页面的大小···设计稿上的大小 浏览器 ...
分类:
移动开发 时间:
2019-05-07 21:15:32
阅读次数:
166
Vasya and Maximum Matching 首先能观察出, 只有完美匹配的情况下方案数唯一。 dp[ i ][ 0 ], dp[ i ][ 1 ], dp[ i ][ 2 ] 分别表示 对于 i 这棵子树 0: 不向上连边完成 1:向上连边完成 2:向上连边未完成 的方案数 ...
分类:
其他好文 时间:
2019-05-06 17:32:46
阅读次数:
144
思路 观察到答案一定是连续的一段下凸函数或者上凸函数 直接模拟找出即可 时间复杂度为$O(n)$ 代码 cpp include include include using namespace std; int n,a[200200],times[200200],minval=0x3f3f3f3f,m ...
分类:
其他好文 时间:
2019-05-03 11:24:28
阅读次数:
102
Dynamic Programming 实际上是[LeetCode] 系统刷题4_Binary Tree & Divide and Conquer的基础上,加上记忆化的过程。就是说,如果这个题目实际上是类似于Divide and conquer或者说是DFS,但是在计算过程中有很多重复计算同样的过程 ...
分类:
其他好文 时间:
2019-04-30 01:21:44
阅读次数:
159
ASP.NET validation controls validate the user input data to ensure that useless, unauthenticated, or contradictory data don't get stored. ASP.NET prov ...
分类:
Web程序 时间:
2019-04-28 15:56:56
阅读次数:
113
网址:https://leetcode.com/problems/maximum-binary-tree/ 参考: https://leetcode.com/problems/maximum-binary-tree/discuss/106146/C%2B%2B-O(N)-solution 我自己的做 ...
分类:
其他好文 时间:
2019-04-27 13:13:15
阅读次数:
119