码迷,mamicode.com
首页 >  
搜索关键字:subsets ii    ( 6815个结果
【于燕飞韩丽丽】边缘检测代码
im=imread('C:\Documents and Settings\Administrator\桌面\2.jpg');Subplot(231);imshow(im);title('原始图像');ii=rgb2gray(im);%ii=im2double(ii);Subplot(232);ims...
分类:其他好文   时间:2014-07-27 09:43:42    阅读次数:475
UVA10599 - Robots(II)(变形的LIS)
题意:一个机器人在n * m的网格里面捡垃圾,机器人只能向右或向下走,求出能捡到的垃圾数量的最大值,有多少条路径可以达到最大值,以及输出其中一条路径。 思路:按照题意可以看出,因为机器人只能向右和向下走,所以纵坐标就不重要的,而横坐标是递增的。当将所有拥有垃圾的格子经过计算得到它的一维值(唯一的),得到一组的数组。那就可以转化为求最长上升子序列。但这个LIS的条件是mod(m)要大于前一...
分类:其他好文   时间:2014-07-26 17:22:22    阅读次数:282
LeetCode "Populating Next Right Pointers in Each Node II"
Compared with I version, the tree could be incomplete. The only difference is that, we connect current node's child to next non-childrenless' node's f...
分类:其他好文   时间:2014-07-26 17:02:11    阅读次数:316
[Leetcode]Combination Sum II
Leetcode Combination Sum II,略有疑惑求讨论...
分类:其他好文   时间:2014-07-26 15:30:12    阅读次数:155
SPOJ QTREE系列 树上分治问题。
375.Query on a tree 【QTREE】 有两个操作: (1)修改第i条边的边权 (2)询问a到b路径上的边权最大值。 树链剖分入门题。树链剖分+线段树维护最大值。修改/查询均为O(log^2)。 很懒,没有写。913.Query on a tree II 【QTREE2...
分类:其他好文   时间:2014-07-26 13:53:45    阅读次数:569
spoj gss2 : Can you answer these queries II 离线&&线段树
1557. Can you answer these queries IIProblem code: GSS2Being a completist and a simplist, kid Yang Zhe cannot solve but get Wrong Answer from most of....
分类:其他好文   时间:2014-07-26 05:44:27    阅读次数:377
[leetcode]Subsets II
Subsets IIGiven a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:其他好文   时间:2014-07-26 01:40:06    阅读次数:178
[leetcode]Subsets
SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must...
分类:其他好文   时间:2014-07-26 01:34:56    阅读次数:189
ACDream - Dynamic Inversions II
先上题目:A-Dynamic Inversions IITime Limit:6000/3000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Description给出N个数a[1],a[2]...
分类:其他好文   时间:2014-07-25 13:56:21    阅读次数:272
HDU 1002 A + B Problem II
A + B Problem II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 209025    Accepted Submission(s): 40177 Problem Description I have...
分类:其他好文   时间:2014-07-25 11:12:01    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!