码迷,mamicode.com
首页 >  
搜索关键字:smallest sub-array    ( 590个结果
Topcoder SRM 687 (Div 2) 250.Quorum
In one organization they have n different committees. The organization has a very large number of employees. Each employee is a member of each committee. Each committee has a quorum: the smallest number of members that have to be present to have an officia...
分类:其他好文   时间:2016-04-15 02:17:37    阅读次数:215
[LeetCode] Delete Duplicate Emails 删除重复邮箱
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft ...
分类:其他好文   时间:2016-04-09 12:15:14    阅读次数:187
lintcode-medium-The Smallest Difference
Given two array of integers(the first array is array A, the second array is array B), now we are going to find a element in array A which is A[i], and ...
分类:其他好文   时间:2016-04-07 09:30:58    阅读次数:106
230. Kth Smallest Element in a BST
...
分类:其他好文   时间:2016-04-02 12:06:10    阅读次数:180
230. Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:其他好文   时间:2016-04-01 12:43:25    阅读次数:145
302. Smallest Rectangle Enclosing Black Pixels My Submissions QuestionEditorial Solution
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla ...
分类:其他好文   时间:2016-03-31 12:42:37    阅读次数:101
lintcode-medium-Min Stack
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c ...
分类:其他好文   时间:2016-03-31 09:29:58    阅读次数:175
leetcode:Minimum Subarray
1、 Given an array of integers, find the subarray with smallest sum. Return the sum of the subarray. For [1, -1, -2, 1], return -3 2、 1、只需要求出最小值 2、利用su ...
分类:其他好文   时间:2016-03-28 18:48:02    阅读次数:141
UVa 11997 K Smallest Sums 优先队列&&打有序表&&归并
You’re given k arrays, each array has k integers. There are k k ways to pick exactly one element in each array and calculate the sum of the integers. Your task is to find the k smallest sums among them....
分类:其他好文   时间:2016-03-05 14:48:36    阅读次数:134
PAT1038. Recover the Smallest Number
//意识到一个重要错误,一直以为atoi,itoa是windows独有的,linux下不可用,直到刚刚。。。 //string+=比strcat好用多了,字符比较也方便的多,但是用scanf读入string,好麻烦。。。cin读入老是出错不晓得为什么,cin对于空格和换行符的处理还不是很清楚,c++
分类:其他好文   时间:2016-03-03 01:40:59    阅读次数:184
590条   上一页 1 ... 33 34 35 36 37 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!