对每一个格子进行处理:计算包含它的最大矩形。up[i][j]: 存储矩形的高;left[i][j]: 存储矩形的左边界的列号;right[i][j]:存储矩形的右边界的列号。面积 = up[i][j] * ( right[i][j] - left[i][j] +1 )。#include #incl....
分类:
其他好文 时间:
2015-08-19 16:28:33
阅读次数:
84
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?提示:首先,题目中要求'without using extra space',...
分类:
其他好文 时间:
2015-08-19 16:12:09
阅读次数:
115
Picking up Jewels
There is a maze that has one entrance and one exit.
Jewels are placed in passages of the maze.
You want to pick up the jewels after getting into the maze through the entran...
分类:
其他好文 时间:
2015-08-19 11:23:51
阅读次数:
1384
题目链接:http://poj.org/problem?id=1564给出m个数,求出和为n的组合方式;并按从大到小的顺序输出;简单的dfs但是看了代码才会;#include #include #include #include using namespace std;int n, m, flag;...
分类:
其他好文 时间:
2015-08-19 09:25:40
阅读次数:
93
Warm up
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 4830 Accepted Submission(s): 1086
Problem Description
N planets are conne...
分类:
其他好文 时间:
2015-08-18 22:52:11
阅读次数:
165
1. LeetCode(twoCode)
Given an array of integers, find two numbers such that they add upto a specific target number.
The function twoSum should return indices of the two numbers suchthat they add up...
分类:
其他好文 时间:
2015-08-18 21:29:23
阅读次数:
191
triangle_up
向上三角形代码:
.tri-up {
border-color: #FFF #FFF #EED2EE #FFF;
border-style: solid;
border-width: 0 60px 100px 60px;...
分类:
Web程序 时间:
2015-08-18 21:24:26
阅读次数:
162
UVa 1627Team them up!题目:Team them up!Time Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionYour task is to divide a n...
分类:
其他好文 时间:
2015-08-18 21:01:23
阅读次数:
134
Pick-up sticksTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 11043Accepted: 4119DescriptionStan has n sticks of various length. He throws th...
分类:
其他好文 时间:
2015-08-18 21:00:51
阅读次数:
150
Description
An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all c...
分类:
Web程序 时间:
2015-08-18 19:37:41
阅读次数:
123