Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According ...
分类:
其他好文 时间:
2017-04-01 23:18:10
阅读次数:
230
题目如下: 原型:最大连续和问题 《算法竞赛入门经典》模版: 本题代码: ...
分类:
其他好文 时间:
2017-04-01 21:13:14
阅读次数:
166
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length ...
分类:
其他好文 时间:
2017-04-01 19:11:02
阅读次数:
152
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1159 Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others ...
分类:
其他好文 时间:
2017-04-01 18:23:45
阅读次数:
238
●2017.3.31 ●学习内容:网络流之求解最大流算法 引:最大流问题(maximum flow problem),一种组合最优化问题,就是要讨论如何充分利用装置的能力,使得运输的流量最大,以取得最好的效果。 ●算法(e,我学了的……) 枚举算法: 由最小切割=最大流定理而来的暴力求法: 枚举所有... ...
分类:
其他好文 时间:
2017-03-31 21:33:36
阅读次数:
270
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, ..., xm > another ...
分类:
其他好文 时间:
2017-03-31 19:44:52
阅读次数:
183
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,us ...
分类:
其他好文 时间:
2017-03-31 13:34:18
阅读次数:
209
重复次数最多的字串,我们可以枚举循环节的长度。 然后正反两次LCP,然后发现如果长度%L有剩余的情况时,答案是在一个区间内的。 所以需要找到区间内最小的rk值。 两个后缀数组,四个ST表,$\Theta(n\log n)$ 就可以解决了 空间卡死了,瞎晶胞卡过去了。 ...
分类:
编程语言 时间:
2017-03-30 18:41:49
阅读次数:
170
直接修改文件“/etc/security/limits.conf”,添加一行如下: * hard nofile 131072 然后“ulimit -a”。再次验证,过。 ...
分类:
其他好文 时间:
2017-03-30 14:57:15
阅读次数:
319
1,html页面<!DOCTYPEhtml>
<htmllang="en"ng-app="myApp">
<head>
<metacharset="UTF-8">
<metaname="viewport"content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
<title>Document..
分类:
其他好文 时间:
2017-03-29 21:24:24
阅读次数:
508