
最值问题
不刷脸皮要刷题
这个作者很懒,什么都没留下…
展开
-
longest substring without repeating characters
Sliding window类的题类似maximum subarray, maximum product subarray转载 2014-11-10 00:43:25 · 278 阅读 · 0 评论 -
Longest Palindromic Substring
public class Solution { public String longestPalindrome(String s) { if (s == null) return null; int max = 0; String maxSub = ""; for (int beg = 0; beg < s.length();转载 2014-10-03 09:13:00 · 274 阅读 · 0 评论 -
Largest Rectangle in Histogram待求
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is a histogram where width o转载 2014-10-06 04:40:58 · 250 阅读 · 0 评论 -
Edit distance - 改进算法待做!
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:转载 2014-10-09 20:51:26 · 388 阅读 · 0 评论 -
Maximum Product Subarray
最值问题的第二种思路,保存局部最优,更新全局最优求P转载 2014-10-19 20:53:57 · 240 阅读 · 0 评论