Is Bigger Smarter?
The ProblemSome people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take the data on a collection of elephants and put as large a subset of...
分类:
其他好文 时间:
2015-07-22 18:58:01
阅读次数:
121
在烟雨朦胧时走在古镇的青石上街上,别有一番风味!第一幅图为央视的直播车,第二副图为美丽的三河夜景色!...
分类:
其他好文 时间:
2015-07-22 18:58:42
阅读次数:
106
检索引擎Elasticsearch支持插件模式,有些时候你可能需要安装一些插件,甚至自己开发插件,这里就提供一个开始ES插件开发示例,ES版本为5.2.0。
一、插件类继承自org.elasticsearch.plugins.AbstractPlugin
package org.elasticsearch.plugin.helloworld;
import java.util.A...
分类:
其他好文 时间:
2015-07-22 18:59:20
阅读次数:
134
Code
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 8662
Accepted: 4113
Description
Transmitting and memorizing information is a task that requires differ...
分类:
其他好文 时间:
2015-07-22 18:58:00
阅读次数:
84
Paths on a Grid
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 22836
Accepted: 5622
Description
Imagine you are attending your math lesson at school. Once...
分类:
其他好文 时间:
2015-07-22 18:57:29
阅读次数:
80
Eddy's research I
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7537 Accepted Submission(s): 4579
Problem Description
Eddy's interest is...
分类:
其他好文 时间:
2015-07-22 18:56:24
阅读次数:
136
Round Numbers
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 10223
Accepted: 3726
Description
The cows, as you know, have no fingers or thumbs and thus ar...
分类:
其他好文 时间:
2015-07-22 18:53:30
阅读次数:
128
1243. Divorce of the Seven Dwarfs
Time limit: 1.0 second
Memory limit: 64 MB
After the Snow White with her bridegroom had left the house of the seven dwarfs, their peaceful and prosperous l...
分类:
其他好文 时间:
2015-07-22 18:56:14
阅读次数:
131
题意:给m个点的坐标,落在n+1个区域中,问各个区域有多少个点。
思路:利用叉积去判断点在线段的哪一侧,二分解决。今天开始慢慢接触计算几何了,然而网络流还没玩顺溜=-=...
分类:
其他好文 时间:
2015-07-22 18:53:30
阅读次数:
102
bootstrap一页有多个轮播的时候,许多人会遇到只有一个轮播可以用,其他轮播都失效的情况。网上的资料也不多。其实会出现这样的问题,应该是轮播的ID重复了,所以导致bootstrap 一页多个轮播。
我在做项目的时候,结合smarty模板,可扩展的配置轮播,且实现了一个页面又多个轮播的功能。
view层:
//测试数据
$result = '{
"service...
分类:
其他好文 时间:
2015-07-22 18:52:29
阅读次数:
126
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a...
分类:
其他好文 时间:
2015-07-22 18:53:19
阅读次数:
93
在现阶段的通信服务中,各种标准都有,因此会出现无法实现相互连通,而XMPP(Extensible Message and presence Protocol)协议的出现,实现了整个及时通信服务协议的互通。有了这个协议之后,使用任何一个组织或者个人提供的即使通信服务,都能够无障碍的与其他的及时通信服务的用户进行交流。例如google 公司2005年推出的Google talk就是一款基于XMPP协议...
分类:
其他好文 时间:
2015-07-22 18:53:03
阅读次数:
116
若同时从一个环的某个点出发,fast指针每次走两步,slow指针每次走一步,则可证明slow指针走回起点时,fast指针也恰好到达起点。两种思路:一、fast指针每次比slow指针多走一步,fast指针想与slow指针同时到达某点,必须超过slow指针一圈,每次多走一步,假设环的节点数为N,则多走一圈需要走N次,此时slow指针恰好走完一圈指向出发点,fast指针亦然;二、fast指针的速度是sl...
分类:
其他好文 时间:
2015-07-22 18:52:18
阅读次数:
109
题意:在n个数中找一共有几个数组,使得数组内的最值差不超过k,数组元素要求连续
解一:ST
#include
#include
#include
#define ll __int64
#define MAX(a,b) ((a)<(b)?(b):(a))
#define MIN(a,b) ((a)<(b)?(a):(b))
const int maxn=100005;
ll a[maxn]...
分类:
其他好文 时间:
2015-07-22 18:52:36
阅读次数:
92
将解决这个问题的整个过程记录下来:
1、首先我以[2,3,6,7,9] 9为例研究了一下可行解,在小规模情况下目测可行解为
[[9], [2,7],[3,6]],我就想如何按照某种规则来搜索出这些可行解呢,此时我想到用于找零问题的贪婪算法,将可行解集合按照贪婪算法重新整理为,[9],[7,2],[6,3]。
2、此时开始想到排列树,编程之美3.2节,发现在排列树上进行贪婪算法是可行的。3、接下...
分类:
其他好文 时间:
2015-07-22 18:52:59
阅读次数:
106
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗 Ctrl + B
斜体 Ctrl + I
引用 Ctrl...
分类:
其他好文 时间:
2015-07-22 18:50:50
阅读次数:
97