Description The cows are out exercising their hooves again! There are N cows jogging on an infinitely-long single-lane track (1 <= N <= 100,000). Each ...
分类:
其他好文 时间:
2016-11-08 19:58:53
阅读次数:
219
转自: http://www.cnblogs.com/gao241/p/3190701.html, 版权归原作者所有。 本文以CentOS操作系统为例介绍Sonar的安装配置,以及如何与Jenkins进行集成,通过pmd-cpd、checkstyle、findbugs等工具对代码进行持续审查。 一、 ...
分类:
其他好文 时间:
2016-11-08 14:01:02
阅读次数:
729
大纲 TopK on single node TopK on multiple nodes Realtime topK with low QPS Realtime topK with high QPS Approx TopK MapReduce 一、TopK on single node 从几个关于 ...
分类:
其他好文 时间:
2016-11-08 01:01:32
阅读次数:
152
1.安装ruby 和 rails $ rvm use ruby-2.3.0$ gem install rails$ rails --version //run ruby$ irb $ cd workspace$ rails new blog$ rails server //localhost:300 ...
分类:
Web程序 时间:
2016-11-07 07:47:08
阅读次数:
192
题意: 给一个有向图,然后选一条路径起点终点都为1的路径出来,有一次机会可以沿某条边逆方向走,问最多有多少个点可以被经过?(一个点在路径中无论出现多少正整数次对答案的贡献均为1) =>有向图我们先考虑缩点。然后观察缩点后的图可以发现新的路径中必定只有一条边是反向的才符合条件。那么我们可以联想到某道最 ...
分类:
其他好文 时间:
2016-11-07 01:28:30
阅读次数:
321
Ants Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 15617 Accepted: 6753 Description An army of ants walk on a horizontal pole of length l ...
分类:
其他好文 时间:
2016-11-07 01:01:09
阅读次数:
200
AngularJS 教程 AngularJS 通过新的属性和表达式扩展了 HTML。 AngularJS 可以构建一个单一页面应用程序(SPAs:Single Page Applications)。 AngularJS 学习起来非常简单。 现在开始学习 AngularJS! AngularJS 通过 ...
分类:
Web程序 时间:
2016-11-06 22:53:15
阅读次数:
249
1,rand 生成均匀分布的伪随机数。分布在(0~1)之间 主要语法:rand(m,n)生成m行n列的均匀分布的伪随机数 rand(m,n,'double')生成指定精度的均匀分布的伪随机数,参数还可以 是'single' rand(RandStream,m,n)利用指定的RandStream(我理 ...
分类:
其他好文 时间:
2016-11-06 16:35:01
阅读次数:
228
Given 2*n + 1 numbers, every numbers occurs twice except one, find it. Have you met this question in a real interview? Yes Given 2*n + 1 numbers, ever ...
分类:
其他好文 时间:
2016-11-06 16:21:50
阅读次数:
243
最近做的题记录下。 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num ...
分类:
其他好文 时间:
2016-11-06 13:54:12
阅读次数:
283