A Simple Tree Problem
Time Limit: 3 Seconds Memory Limit: 65536 KB
Given a rooted tree, each node has a boolean (0 or 1) labeled on it. Initially, all the labels are 0.
We define this kind...
分类:
其他 时间:
2015-08-15 06:45:06
收藏:
0 评论:
0 赞:
0 阅读:
190
problem:Given two string, write a method to decide if one is a permutation of the otherSolution:1. sort two strings and return weather str1 equal to s...
分类:
其他 时间:
2015-08-15 06:42:56
收藏:
0 评论:
0 赞:
0 阅读:
188
题意:数列长度为n,m次操作(n1); 对于每个i,有dp[ti]=min(dp[ti],min(dp[j](si#include#includeusing namespace std;#define inf 0x3f3f3f3fint dp[5000100];int num[5000100]...
分类:
其他 时间:
2015-08-15 06:42:46
收藏:
0 评论:
0 赞:
0 阅读:
336
R的速度慢一直被人诟病,最近做一个比较大的dataset的分析,跑得实在太慢,发现症结是R的data frame的index太慢:以下为测试:gene_list = 1:100000eQTL_mat = matrix(nrow = length(gene_list), ncol = 7) # 创建一...
分类:
其他 时间:
2015-08-15 06:41:46
收藏:
0 评论:
0 赞:
0 阅读:
230
problem:Implement a function void reverse(char *str) in C and C++ which reverse a null-terminated string.The solution:1. use another pointer end point...
分类:
其他 时间:
2015-08-15 06:41:36
收藏:
0 评论:
0 赞:
0 阅读:
143
有时候我们需要修改已经生成的列表,添加或者修改数据,notifyDataSetChanged()可以在修改适配器绑定的数组后,不用重新刷新Activity,通知Activity更新ListView。今天的例子就是通过Handler AsyncTask两种方式来动态更新ListView.布局main....
分类:
其他 时间:
2015-08-15 06:40:56
收藏:
0 评论:
0 赞:
0 阅读:
189
layer7 iptables 应用协议识别 协议识别 过滤 子连接 ct
分类:
其他 时间:
2015-08-15 02:18:26
收藏:
0 评论:
0 赞:
0 阅读:
288
<p><span style="font-family:Microsoft YaHei;font-size:14px;"><strong>背景:</strong>SACC技术自白书,是2015年系统架构师大会对往届参会者、会粉儿进行的一次网络征文...
分类:
其他 时间:
2015-08-15 02:18:01
收藏:
0 评论:
0 赞:
0 阅读:
385
The request sent by the client was syntactically incorrect.
?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ...
分类:
其他 时间:
2015-08-15 02:15:31
收藏:
0 评论:
0 赞:
0 阅读:
267
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q ...
分类:
其他 时间:
2015-08-15 02:14:41
收藏:
0 评论:
0 赞:
0 阅读:
99
模块热更新存在严重bug暂时取消
netty升级到5.0
增加mysql数据库操作类
增加了http请求方法
修复部分bug及统一异常捕捉日志
开源了本人基于lightning4j开发的html5游戏《无尽战争》的服务端作为示例
??????????? 详情见:https://github.com/coder-leehui/lightning4j
分类:
其他 时间:
2015-08-15 02:10:31
收藏:
0 评论:
0 赞:
0 阅读:
248
Axure RP的v8版本的目标之一是更好地使用视窗的使用面积,在保持多种功能的前提下拥有更干净的用户界面。如果你以前在使用Axure RP 7,那么你会发现在 ...
分类:
其他 时间:
2015-08-15 02:07:36
收藏:
0 评论:
0 赞:
0 阅读:
165
该文章是根据velocity 2015技术大会的演讲《京东网站单品页618实战》细化而来,希望对大家有用。
?
商品详情页是什么
商品详情页是展示商品详细信? ...
分类:
其他 时间:
2015-08-15 02:07:12
收藏:
0 评论:
0 赞:
0 阅读:
217
本文主要是为了今后对Dedecms做二次开发所写。安装后dedecms的目录,如(图1)所示,?图1-文件根目录
“a”:? 默认HTML文件存放目录“data”: 系统缓 ...
分类:
其他 时间:
2015-08-15 02:05:56
收藏:
0 评论:
0 赞:
0 阅读:
192
RPC(Remote Procedure Call)?在介绍分布是RPC前首先介绍一个下JAVA中简单的RPC实现
???????服务器端,通过SocketServer,持续接收客户端的请求,并将客户端的请求分发到指定的处理器出去处理。
/**
*
* @author zhangwei_david
* @version $Id: ServiceServer.java, v 0 ...
分类:
其他 时间:
2015-08-15 02:04:41
收藏:
0 评论:
0 赞:
0 阅读:
161
分类:
其他 时间:
2015-08-15 02:00:56
收藏:
0 评论:
0 赞:
0 阅读:
143
-?(BOOL)tabBarController:(UITabBarController?*)tbc?shouldSelectViewController:(UIViewController?*)vc?{
????
????UIViewController?*tbSelectedController?=?tbc.selectedViewController;...
分类:
其他 时间:
2015-08-15 01:38:56
收藏:
0 评论:
0 赞:
0 阅读:
182
软件设计,一直是一个非常抽象的,非常难懂的领域。
然而设计,并不是科学,虽然有评价标准,却没有是非对错。好的软件,就像是艺术品,闪耀着前人智慧的结晶。本文将探讨一下流行的软件设计,以及总结一下好的设计原则和方法。...
分类:
其他 时间:
2015-08-15 01:38:06
收藏:
0 评论:
0 赞:
0 阅读:
192
传送门
大意:给出NN个数,对于存有每两个数的差值的序列求中位数,如果这个序列有偶数个元素,就取中间偏小的作为中位数。因为N<=100000N <= 100000,所以想要求出每一个差值是不可行的,我们很容易想到二分答案。 在二分答案时我们会进行判定,求出小于等于枚举值的个数,我看其他人的判定似乎都是O(NlogN)O(N\log N) 的,我在这里就给出一个O(N)O(N)的判定方法。首先同样将...
分类:
其他 时间:
2015-08-15 01:37:56
收藏:
0 评论:
0 赞:
0 阅读:
411
链接 : http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=36866
可以建一个类似二分图,X集合是所有行,Y集合是所有列,X->Y的容量为(1到20)。建立源点连接每个X中的点,容量为该行的和。建立汇点连接Y中的点,容量为该行的列。目的是求从源点出发的流量就是容量,且必须走完所有流量并到达汇点,汇点的流量必须是源点发出的流...
分类:
其他 时间:
2015-08-15 01:36:56
收藏:
0 评论:
0 赞:
0 阅读:
258