a1,a2,a3,a4,a5,a6...an
对ai求出a1到ai的lis,ai+1到an的lds
取所有ai对应的lis+lds最大值
输出n-lis-lds
#include
#include
#include
#include
#include
#include
using namespace std;
int n;
double num[1111];
double up...
分类:
其他好文 时间:
2014-06-09 23:29:00
阅读次数:
249
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-06-09 23:14:45
阅读次数:
264
As a so exciting dream, I would like set up my
owned web site which can be accessed anywhere nomatter from laptop/mobile phone
or tablet. Current now ...
分类:
Web程序 时间:
2014-06-09 13:00:33
阅读次数:
420
2014.06.07开机无法上网,每次都得$ sudo ifconfig eth1 up $ sudo
dhclient eth1
后面发现原来是网卡没设置开机启动编辑/etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yes
分类:
系统相关 时间:
2014-06-08 22:11:31
阅读次数:
340
Steps1Check to see if your Ubuntu Linux operating
system architecture is 32-bit or 64-bit, open up a terminal and run the
following command below.Type...
分类:
编程语言 时间:
2014-06-08 19:51:49
阅读次数:
328
在用wine时遇到打开软件后不能关闭的问题,以下是解决方案首先了解一下top命令终端输入top后显示以下内容top - 13:05:54 up 2:08, 1
user, load average: 0.54, 0.57, 0.67Tasks: 228 total, 3 running, 225 s...
分类:
其他好文 时间:
2014-06-08 19:17:25
阅读次数:
282
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tre...
分类:
其他好文 时间:
2014-06-08 15:46:22
阅读次数:
303
题目
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20...
分类:
其他好文 时间:
2014-06-08 09:23:34
阅读次数:
230
经过与开发的不断协作,终于差不多把error日志的报错信息消灭的差不多了,但还是偶尔出现“*1939anupstreamresponseisbufferedtoatemporaryfile/var/cache/nginx/proxy_temp/2/00/0000000002whilereadingupstream,client:116.231.88.XX,server:_,request:"GET/timeHTTP/1.1",up..
分类:
其他好文 时间:
2014-06-08 02:36:04
阅读次数:
223
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-06-08 02:12:04
阅读次数:
216