码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
[LeetCode][JavaScript]Max Points on a Line
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.求有多少点在一直线上。粗暴地用二重循环遍历。每一轮都构造一个哈希表...
分类:编程语言   时间:2015-08-16 00:39:26    阅读次数:145
pat(A) 1007. Maximum Subsequence Sum(和最大子段)
代码: #include #include using namespace std; int a[10005]; int main() { int n; while(scanf("%d",&n)==1) { int flag=0; for(int i=0;i<n;i++) { scanf("%d"...
分类:其他好文   时间:2015-08-15 23:06:15    阅读次数:180
【LeetCode】104 - Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2015-08-15 22:42:42    阅读次数:138
Longest Palindromic Substring
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-08-15 21:22:37    阅读次数:112
[LeetCode] Maximum Depth of Binary Tree
Well, this problem has the highest acceptance rate among all OJ problems. It has a very easy 1-line reursive solution. I am not sure whether this one ...
分类:其他好文   时间:2015-08-15 19:49:12    阅读次数:131
[LeetCode] House Robber
Since we are not allowed to rob two adjacent houses, we keep two variablespreandcur. During thei-th loop,prerecords the maximum profit that we do not ...
分类:其他好文   时间:2015-08-15 11:54:05    阅读次数:114
LeetCode104:Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Show Tags Show Similar Proble...
分类:其他好文   时间:2015-08-14 01:11:52    阅读次数:136
[LeetCode] Best Time to Buy and Sell Stock III
Best Time to Buy and Sell Stock III Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2015-08-13 22:21:51    阅读次数:180
[LeetCode] Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock II Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as m...
分类:其他好文   时间:2015-08-13 18:05:07    阅读次数:190
MTU 最大传输单位
MTU 最大传输单位         通过上面 MAC 封装的定义,现在我们知道标准以太网络frame所能传送的数据量最大可以到达 1500 bytes , 这个数值就被我们称为 MTU (Maximum Transmission Unit, 最大传输单位)。 你得要注意的是,每种网络接口的 MTU 都不相同,因此有的时候在某些网络文章上面你会看到 1492 bytes 的 MTU 等等。不过,...
分类:其他好文   时间:2015-08-13 10:06:12    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!