problem: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating l ...
分类:
编程语言 时间:
2017-06-09 14:12:32
阅读次数:
137
https://leetcode.com/problems/longest-palindromic-subsequence/#/description ...
分类:
其他好文 时间:
2017-06-09 10:01:11
阅读次数:
124
题目: 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 farthe ...
分类:
编程语言 时间:
2017-06-08 19:44:11
阅读次数:
110
Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest inc ...
分类:
其他好文 时间:
2017-06-08 13:09:04
阅读次数:
205
Note: This question is good summary for this kind of problem. 1) Once you get the root, loop through all the children. Get the max up/down/max from th ...
分类:
其他好文 时间:
2017-06-07 10:15:22
阅读次数:
156
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */... ...
分类:
其他好文 时间:
2017-06-07 10:10:51
阅读次数:
114
Note: O(n) This question is the extension of the version one. The longest consecutive Sequence could be found in "Parent->Children" or "Children -> Pa ...
分类:
其他好文 时间:
2017-06-07 10:02:45
阅读次数:
149
链接:http://poj.org/problem?id=2533 Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 38875 Accepted: 17066 Descrip ...
分类:
其他好文 时间:
2017-06-06 14:21:49
阅读次数:
134
背景 近期開始研究算法,于是在leetcode上做算法题,第五题Longest Palindromic Substring便是关于回文子串的。 什么是回文字串 回文字符串是指将该字符串前后颠倒之后和该字符串一样的字符串。比如:a,aaaa,aba,abba… 最长回文子串 要求最长回文子串,就须要遍 ...
分类:
编程语言 时间:
2017-06-05 23:49:22
阅读次数:
329
?? 一、功能 窗体管理是ANDROID框架一个重要部分,主要包含例如以下功能: (1)Z-ordered的维护 (2)窗体的创建、销毁 (3)窗体的绘制、布局 (4)Token管理,AppToken (5)活动窗体管理(FocusWindow) (6)活动应用管理(FocusAPP) (7)输入法 ...
分类:
移动开发 时间:
2017-06-05 14:11:55
阅读次数:
195