Given amxnmatrix, if an element is 0, set its
entire row and column to 0. Do it in place.click to show follow up.Follow up:Did
you use extra space?A s...
分类:
其他好文 时间:
2014-05-12 08:22:51
阅读次数:
255
前些天写了一篇《令人作呕的OpenSSL》,顿时引来了大量的恶评,令我非常尴尬,同时也觉得悲哀。如果说you can you up之类的,我觉得起码这人看出了我的本意,只是怀疑我的能力,但是我看到一些人竟然在我评价了一段僵尸代码后认定我不懂编译代码,这就悲哀了,这段代码大致如下:#if 0 /*abcdefghijklmn, ( and
ABCDEFGHHHHSASA
...
分类:
其他好文 时间:
2014-05-11 14:08:34
阅读次数:
238
Triangle
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 8038
Accepted: 2375
Description
Given n distinct points on a plane, your task is to find the triangl...
分类:
其他好文 时间:
2014-05-11 06:36:44
阅读次数:
425
题目:http://poj.org/problem?id=2456
重新练习下二分法,发现还是手速不够
从这道题学到一下几点:
1、线性分几段的方法,看我的Judge()代码;
2、二分的while()最终打印的是down,而不是mid(我代码里写的是ans),或者up,
这么想:跳出循环的时候,假设while里的判断,Judge(ans)==1,那么down是正确解,up不是
Jud...
分类:
其他好文 时间:
2014-05-11 03:39:07
阅读次数:
278
error: RPC failed; result=22, HTTP code = 411fatal:
The remote end hung up unexpectedly解决方法:git config http.postBuffer 524288000
分类:
其他好文 时间:
2014-05-10 01:06:09
阅读次数:
367
一个图表有很多元素构成,所有元素都能通过图表API控制。图表API是面向对象的,可扩展的,高复用的。支持很多图表元素如:data
series,data points in a series,chart areas
等等。下面的图形说明了一个图表的关键元素:图表元素描述:下面的列表描述了图表主要的元...
分类:
Web程序 时间:
2014-05-10 01:04:20
阅读次数:
247
题目链接:
http://acm.timus.ru/problem.aspx?space=1&num=1114
1114. Boxes
Time limit: 0.6 second
Memory limit: 64 MB
N boxes are lined up in a sequence (1 ≤ N ≤ 20). You have A red ball...
分类:
其他好文 时间:
2014-05-09 21:58:58
阅读次数:
471
Recentlyifindthewindows8DiskUsagealwayskeepup100%,Itmustbehavesomeissue.Step1.GointoOpenTaskManagerStep2.GotoDetailstabStep3.Rightclickthecolumnsheadersandclick"SelectColumns"Step4.Fromthe"SelectColumns"window,check:I/OReads,I/OWrites,I/Oreadbytes,I/Owriteb..
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4717
思路:第一次写三分法,原理和二分法其实是一样的,计算过程两边for,时间复杂度为O(n^2log(n))
代码:
#include
#include
#include
const double eps = 1e-6;
const int N = 305;
#define max(a...
分类:
其他好文 时间:
2014-05-09 21:11:49
阅读次数:
359
Path Sum IGiven a binary tree and a sum,
determine if the tree has a root-to-leaf path such that adding up all the values
along the path equals the gi...
分类:
其他好文 时间:
2014-05-09 13:21:59
阅读次数:
320