1.(原文)问题描述Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,...
分类:
其他好文 时间:
2014-11-11 15:51:54
阅读次数:
145
Corn Fields
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 8291
Accepted: 4409
Description
Farmer John has purchased a lush new rectangular pasture compos...
分类:
其他好文 时间:
2014-11-10 23:30:04
阅读次数:
397
1.Given a rectangular (cuboidal for the puritans) cake with a rectangular piece removed (any size or orientation), how would you cut the remainder of ...
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.Solution: 1 public class Solution...
分类:
其他好文 时间:
2014-11-10 06:32:28
阅读次数:
202
[Description] Given two different strings, find the largest successive common substring.e.g. str1[]="qwertyuiopasdfgh"; str2[]="jhdfgqwertyudfxcv"; .....
分类:
其他好文 时间:
2014-11-09 12:31:30
阅读次数:
203
We have 8 numbers. Sort as ascend.1st loop, we compare 7 times (for 8 numbers), and found the largest 8.2nd loop, we compare 6 times (for 7 numbers), ...
分类:
其他好文 时间:
2014-11-09 12:24:42
阅读次数:
184
[Description] Given a string, find the largest unique substring.e.g. str[] = "asdfghjkkjhgf"; sub[] = "asd";[Thought] create an auxiliary space 'r...
分类:
其他好文 时间:
2014-11-09 11:13:04
阅读次数:
142
偶然看到了“Fotolog: Scaling the World\'s Largest Photo Blogging Community”,才发现很多数据库的优化其实道理都很简单,至高境界是当你面对问题时,是否真正做出了自己的思考,而不仅仅只是经验主义的惯性使然:本文案例背景介绍:一个图片网站,每张...
分类:
数据库 时间:
2014-11-09 08:35:43
阅读次数:
157
The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that divides th...
分类:
其他好文 时间:
2014-11-08 18:21:48
阅读次数:
176
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1,2,1,...
分类:
其他好文 时间:
2014-11-08 16:45:18
阅读次数:
111