码迷,mamicode.com
首页 >  
搜索关键字:maximum subsequence    ( 5146个结果)
LeetCode:Longest Palindromic Substring
problem: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 one uniqu...
分类:其他好文   时间:2015-06-16 18:32:29    阅读次数:113
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
HDU Common Subsequence (dp)
Common Subsequence Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 14   Accepted Submission(s) : 7 Font: Times New Roman | Verdana | Georgia ...
分类:其他好文   时间:2015-06-15 09:19:26    阅读次数:94
[HackerRank] The Longest Common Subsequence
This is the classic LCS problem. Since it requires you to print one longest common subsequence, just use the O(m*n)-space version here.My accepted cod...
分类:其他好文   时间:2015-06-15 00:13:35    阅读次数:112
[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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!