报错标题:Could not apply the stored configuration for monitors内容是一堆显示器分辨率问题。解决办法:因为我现在用的是笔记本外挂一个显示器,在重启的时候,gnome-setting-deamon 会保存上一次的设置,生成一个monitors.xml...
分类:
其他好文 时间:
2014-07-13 22:18:10
阅读次数:
443
Some Classical Recursive FunctionsSome Classical Recursive FunctionsTable of Contents1. Find the maximum element of an array recursively.In this post,...
分类:
其他好文 时间:
2014-07-13 21:18:30
阅读次数:
200
ECMAScript6对数组进行了扩展,为数组Array构造函数添加了from()、of()等静态方法,也为数组实例添加了find()、findIndex()等方法。下面一起来看一下这些方法的用法。Array.from()Array.from()将类数组(array-like)对象与可遍历的对象转化...
分类:
其他好文 时间:
2014-07-13 20:33:59
阅读次数:
247
题意为求出只由0,1组成的并且是所给数倍数的数,
广搜。。
因为首位不能为0,因此必为1;所以搜索的下一层为上一层的10倍和10倍加1;
#include
#include
#include
using namespace std;
__int64 s[9999999];
__int64 r;
void show(int q)
{
int i,j;
s[0]=1;
j=0;
i=0;...
分类:
其他好文 时间:
2014-07-13 16:36:40
阅读次数:
172
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-07-13 16:01:42
阅读次数:
209
文件查找所谓的文件查找时根据文件的各种属性在特定的路径下找到对应文件的过程。一、文件查找的方式实时查找:遍历所有文件进行条件匹配。查找精确,但是速度慢。这种查找通过find命令来实现。非实时查找:根据索引进行查找。查找速度快,但是查找不精确。这种查找locate命令..
分类:
系统相关 时间:
2014-07-13 15:21:01
阅读次数:
316
Mayor's posters
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 39795
Accepted: 11552
Description
The citizens of Bytetown, AB, could not stand that the...
分类:
其他好文 时间:
2014-07-13 14:02:48
阅读次数:
266
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transactions.
Note:
You ma...
分类:
其他好文 时间:
2014-07-13 13:55:14
阅读次数:
305
执行:
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm
之后出现
Running FastCGI Process Manager checks
checking for php-fpm config file path... $prefix/etc/php-fpm.conf
checking for ...
分类:
其他好文 时间:
2014-07-13 13:50:43
阅读次数:
205
Design an algorithm and write code to find the first common ancestory of two nodes in a binary tree. Avoid storing additional nodes in data structure....
分类:
其他好文 时间:
2014-07-13 13:24:21
阅读次数:
279