码迷,mamicode.com
首页 >  
搜索关键字:mixed up cows    ( 9955个结果
POJ1836 Alignment 【LIS(二分)+枚举】
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
leetcode——Two Sum 两数之和(AC)
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
【linux】学习笔记
2014.06.07开机无法上网,每次都得$ sudo ifconfig eth1 up $ sudo dhclient eth1 后面发现原来是网卡没设置开机启动编辑/etc/sysconfig/network-scripts/ifcfg-eth0ONBOOT=yes
分类:系统相关   时间:2014-06-08 22:11:31    阅读次数:340
图论算法----强连通
poj2186Popular Cows分析:直接求一下强连通分量,对于同一个强连通分量里面的结点状态是相同的,要求有多少个人被其他所有的人都认可,只有可能是拓扑排序的最后一个强连通的结点个数,判断一下其他节点是否都可以到该联通分量就ok了。 1 #include 2 #include 3 #in.....
分类:其他好文   时间:2014-06-08 21:44:25    阅读次数:307
Linux -- Ubuntu搭建java开发环境
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
top、kill实现进程结束
在用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
LeetCode: Populating Next Right Pointers in Each Node II [117]
【题目】 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
Binary Tree Level Order Traversal II
题目 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
nginx error日志报错
经过与开发的不断协作,终于差不多把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
LeetCode——Two Sum
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!