码迷,mamicode.com
首页 >  
搜索关键字:largest rectangle in    ( 2497个结果
[006] largest_common_substring
[Description] Given two different strings, find the largest successive common substring.e.g. str1[]="qwertyuiopasdfgh"; str2[]="jhdfgqwertyudfxcv"; .....
分类:其他好文   时间:2014-11-09 12:31:30    阅读次数:203
Bubble Sort
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
[005] unique_sub_string
[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
MySQL中主键的选择与磁盘性能
偶然看到了“Fotolog: Scaling the World\'s Largest Photo Blogging Community”,才发现很多数据库的优化其实道理都很简单,至高境界是当你面对问题时,是否真正做出了自己的思考,而不仅仅只是经验主义的惯性使然:本文案例背景介绍:一个图片网站,每张...
分类:数据库   时间:2014-11-09 08:35:43    阅读次数:157
Maximum Subarray
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
[LeetCode] 最大连续自序列和或者乘积
#题目 > Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the ...
分类:其他好文   时间:2014-11-08 10:36:12    阅读次数:201
[dp]POJ2559 && HDOJ1506 Largest Rectangle in a Histogram
题意 给n个条形的高度, 问能放的最大矩形面积分析: 从左到右 从右到左 各搞一遍分别记录 L[i]记录列(从前往后)标 第几列开始 可以往后放高度为a[i]的矩形 R[i]记录列(从后往前)标 第几列开始 可以往前放高度为a[i]的矩形R[i]-L[i]+1即为高度为a[i]的矩形能...
分类:其他好文   时间:2014-11-08 10:27:39    阅读次数:181
[HDU 4419] Colourful Rectangle (扫描线 矩形面积并)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4419题目大意:比矩形面积并多了颜色,问染成的每种颜色的面积。矩形面积并的扫描线维护的是长度,这道题就是维护每个颜色的长度,写起来很蛋疼。 1 #include 2 #include 3 #inclu.....
分类:其他好文   时间:2014-11-07 23:16:26    阅读次数:440
Nth Largest Value
Problem DescriptionFor this problem, you will write a program that prints theNthlargest value in a fixed sized array of integers. To make things simpl...
分类:其他好文   时间:2014-11-06 21:45:05    阅读次数:177
Maximum Product Subarray (3)
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t...
分类:其他好文   时间:2014-11-05 22:59:32    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!