原题链接在这里:https://leetcode.com/problems/longest-palindrome/ 题目: Given a string which consists of lowercase or uppercase letters, find the length of the ...
分类:
其他好文 时间:
2017-01-08 09:09:43
阅读次数:
169
郑重声明,版权所有! 转载需说明。 FREERTOS堆栈大小的单位是word,不是byte. 根据处理器架构优化系统的任务优先级不能超过32,If the architecture optimized method is used then configMAX_PRIORITIES cannot b ...
分类:
其他好文 时间:
2017-01-06 21:53:40
阅读次数:
974
1 public int lengthOfLongestSubstring(String s) { 2 long length = s.length(); 3 String tmp = ""; 4 int substringLength = 0; 5 for (int i = 0; i substr... ...
分类:
其他好文 时间:
2017-01-03 23:59:03
阅读次数:
323
March 26, 2013 作者:Hawstein 出处:http://hawstein.com/posts/dp-novice-to-advanced.html 声明:本文采用以下协议进行授权: 自由转载-非商用-非衍生-保持署名|Creative Commons BY-NC-ND 3.0 ,转 ...
分类:
其他好文 时间:
2017-01-03 21:50:36
阅读次数:
244
Description Once upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, ...
分类:
其他好文 时间:
2016-12-31 21:55:04
阅读次数:
298
最长不降子序列 最长不降子序列 原文http://www.cppblog.com/superKiki/archive/2010/08/09/122868.html 这题目是经典的DP题目,也可叫作LIS(Longest Increasing Subsequence)最长上升子序列或者 最长不下降子序 ...
分类:
其他好文 时间:
2016-12-30 19:17:31
阅读次数:
147
Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: The director ...
分类:
其他好文 时间:
2016-12-28 07:47:30
阅读次数:
161
public void addSubscibe(List<PermedipUserSubscribeVo> list) { final List<PermedipUserSubscribeVo> vos=list; String sql="insert into permedip_user_subs ...
分类:
数据库 时间:
2016-12-27 11:42:05
阅读次数:
175
(LIS Longest Increasing Subsequence)给定一个数列,从中删掉任意若干项剩余的序列叫做它的一个子序列,求它的最长的子序列,满足子序列中的元素是单调递增的。 例如给定序列{1,6,3,5,4},答案是3,因为{1,3,4}和{1,3,5}就是长度最长的两个单增子序列。处 ...
分类:
其他好文 时间:
2016-12-25 09:37:58
阅读次数:
301
题目链接 最长上升子序列O(n*log(n))的做法,只能用于求长度不能求序列。 这个是既能求长度也能求序列的,复杂度O(n^2)。 ...
分类:
其他好文 时间:
2016-12-24 19:26:52
阅读次数:
143