Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, ..., x ...
分类:
其他好文 时间:
2018-09-09 00:37:47
阅读次数:
150
Creating Reusable Playbooks 创建可重用的剧本 Including and Importing Roles While it is possible to write a playbook in one very large file (and you might star ...
分类:
其他好文 时间:
2018-09-08 21:02:07
阅读次数:
244
Use bfs The given is [[1,0]] To take course 1 you should have finished course 0. So it is possible. So we need to convert the input into something lik ...
分类:
其他好文 时间:
2018-09-08 11:48:03
阅读次数:
159
描述 Given an N-digit number, you should remove K digits and make the new integer as large as possible. Given an N-digit number, you should remove K dig ...
分类:
其他好文 时间:
2018-09-08 11:41:36
阅读次数:
139
nodejs 部署阿里云PM2,启动一段时间之后,request报错: (node:27400) MaxListenersExceededWarning: Possible EventEmitter memory leak detected。 解决方案: 把下面的代码放到 app启动之前 ...
分类:
其他好文 时间:
2018-09-07 18:05:01
阅读次数:
1567
Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a ...
分类:
Web程序 时间:
2018-09-07 15:09:24
阅读次数:
177
Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone cat ...
分类:
其他好文 时间:
2018-09-06 14:43:01
阅读次数:
206
传送门 题意:给定一棵带权树的形态, 但是并不知道每天条边的具体权重. 然后给m个信息, 信息格式为u v val, 表示在树上u 到 v 的路径上经过的边的权重的异或和为val, 问前面最多有多少个信息是不冲突的. 思路:首先很明显的我们要维护一系列不知道的信息, 看冲不冲突的那就是带权并查集没跑 ...
分类:
其他好文 时间:
2018-09-06 02:58:53
阅读次数:
163
实际项目开发中,由于我们不知道实际查询的时候数据库里发生了什么事情,数据库软件是怎样扫描表、怎样使用索引的,因此,我们能感知到的就只有 sql语句运行的时间,在数据规模不大时,查询是瞬间的,因此,在写sql语句的时候就很少考虑到性能的问题。但是当数据规模增大,如千万、亿的时候,我们运 行同样的sql ...
分类:
数据库 时间:
2018-09-06 00:07:03
阅读次数:
208
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exampl ...
分类:
其他好文 时间:
2018-09-04 23:23:34
阅读次数:
213