Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-01-26 13:26:51
阅读次数:
195
题目链接Problem StatementCodenationis sendingNof its employees to a High Profile Business Conference and the goal is to cover maximum number of presentati...
分类:
其他好文 时间:
2015-01-25 16:35:51
阅读次数:
202
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2015-01-25 11:03:14
阅读次数:
129
https://oj.leetcode.com/problems/maximum-product-subarray/Find the contiguous subarray within an array (containing at least one number) which has the ...
分类:
其他好文 时间:
2015-01-24 22:38:58
阅读次数:
254
最近在看RCNN和微软的SPP-net,其中涉及到Non-Maximum Suppression,论文中没具体展开,我就研究下了代码,这里做一个简单的总结。
假设从一个图像中得到了2000region proposals,通过在RCNN和SPP-net之后我们会得到2000*4096的一个特征矩阵,然后通过N的SVM来判断每一个region属于N的类的scores。其中,SVM的权重矩阵...
分类:
其他好文 时间:
2015-01-24 16:02:57
阅读次数:
184
Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/spac...
分类:
其他好文 时间:
2015-01-24 15:44:53
阅读次数:
201
Given n points
on a 2D plane, find the maximum number of points that lie on the same straight line.
这道题做的时候要考虑几个edge
1. infinity
2. same points
这里我们用hashtable将得到的slope存起来,最后每过一个点将其和其他所有点的组合成的sl...
分类:
编程语言 时间:
2015-01-24 11:45:17
阅读次数:
208
Problem D - Maximum Product
Time Limit: 1 second
Given a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the maximum positive product involving cons...
分类:
其他好文 时间:
2015-01-23 18:27:41
阅读次数:
165
Maximum Gap2015.1.23 15:00Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in l...
分类:
其他好文 时间:
2015-01-23 16:10:03
阅读次数:
111
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,...
分类:
其他好文 时间:
2015-01-23 13:00:37
阅读次数:
101