码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
LeetCode| Best time to buy and sell stock 2
题目: 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 many transactions as you like ...
分类:其他好文   时间:2015-03-29 12:22:52    阅读次数:130
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 many transactions as you like (ie, buy one an...
分类:其他好文   时间:2015-03-29 12:16:23    阅读次数:108
Best time to buy and sell stock 3 --- LeetCode
题目: 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 at most two transactions. Note...
分类:其他好文   时间:2015-03-29 12:14:11    阅读次数:150
backlog参数与SYN Flood攻击
在linux网络编程中,使用listen函数监听套接字,在linux中man其用法,第2个参数解释如下: The backlog argument defines the maximum length to which the queue of pending connections for sockfd may grow. ?...
分类:其他好文   时间:2015-03-29 09:32:29    阅读次数:229
LeetCode[Dynamic Programming]: Maximum Product Subarray
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 largest ...
分类:其他好文   时间:2015-03-27 22:28:08    阅读次数:211
LeetCode Algorithm 05
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-03-22 00:18:36    阅读次数:134
[Leetcode] Maximum Gap
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-03-21 16:49:56    阅读次数:121
Maximum Gap
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-03-21 12:39:00    阅读次数:177
Maximum Product Subarray
Maximum Product Subarray问题:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, gi...
分类:其他好文   时间:2015-03-21 11:03:59    阅读次数:135
LeetCode – Refresh – Maximum Depth of Binary Tree
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(i...
分类:其他好文   时间:2015-03-21 06:22:17    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!