码迷,mamicode.com
首页 >  
搜索关键字:maximum    ( 4142个结果
LeetCode188:Best Time to Buy and Sell Stock IV
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 k transactions. Note: You may no...
分类:其他好文   时间:2015-06-16 16:51:37    阅读次数:107
LeetCode Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.强行解:inline bool valueSame(double a, double b) { re...
分类:其他好文   时间:2015-06-16 12:27:10    阅读次数:86
LeetCode123: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 at most two transactions. Note: You ma...
分类:其他好文   时间:2015-06-16 11:05:45    阅读次数:116
js-graph-it的一个小demo
New Document           function onLoad(){ resizeCanvas(); initPageObjects(); } /** * Resizes the main canvas to the maximum visible height. */ function resizeCanvas() {...
分类:Web程序   时间:2015-06-15 14:38:26    阅读次数:125
Mysql文件太大导入失败解决办法总结
在使用phpmyadmin导入数据库的时候可能会碰到由于数据库文件太大而无法导入的问题!英文提示如下:File exceeds the maximum allowed size如果正在使用的主机可以自定义php.ini的话,就可以通过直接修改这个文件来解决,即通过通过编辑php.ini文件来重新设定...
分类:数据库   时间:2015-06-15 14:23:26    阅读次数:139
[UVa Online Judge] Longest Common Subsequence
This is the classic LCS problem. Since it only requires you to print the maximum length, the code can be optimized to use only O(m) space (seehere).My...
分类:其他好文   时间:2015-06-15 00:10:20    阅读次数:157
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-06-15 00:07:45    阅读次数:142
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-06-14 16:30:11    阅读次数:79
Maximum Product Subarray -- leetcode
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-06-14 13:50:36    阅读次数:91
Longest Palindromic Substring
1. Question求最长回文子串Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists...
分类:其他好文   时间:2015-06-12 23:49:08    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!