1、 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 farthes
分类:
其他好文 时间:
2016-03-22 19:06:39
阅读次数:
114
题目: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may a
分类:
其他好文 时间:
2016-03-21 01:35:31
阅读次数:
202
Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from t
分类:
其他好文 时间:
2016-03-20 08:09:33
阅读次数:
194
题目链接: https://leetcode.com/problems/increasing-triplet-subsequence/ 题目大意: 找出一个三元的上升子序列。返回bool值,表示是否存在。 O(n)时间,O(1)空间 解题思路: 维护第一小数,第二小数。 一但出现数大于第二小数,即可
分类:
其他好文 时间:
2016-03-19 11:19:47
阅读次数:
176
1、 Give an integer array,find the longest increasing continuous subsequence in this array. An increasing continuous subsequence: For [5, 4, 2, 1, 3],
分类:
其他好文 时间:
2016-03-18 17:33:02
阅读次数:
132
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 l
分类:
其他好文 时间:
2016-03-18 09:27:07
阅读次数:
131
What is Integer Overflow? Storing a value greater than maximum supported value is called integer overflow. Integer overflow on its own doesnt lead to ...
分类:
系统相关 时间:
2016-03-18 00:13:32
阅读次数:
228
第一次写这方面的blog.自己也是初次接触相关知识,写的有不妥的地方十分欢迎大家指正~ 这是浙大PAT上的一道算法题(据说是浙大04年研究生复试题),题目是这样的: Maximum Subsequence Sum Given a sequence of KK integers { N_1N?1??,
分类:
编程语言 时间:
2016-03-17 21:35:24
阅读次数:
786
我们在开发移动设备的网站时,最常见的的一个动作就是把下面这个东西复制到我们的head标签中: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=
分类:
移动开发 时间:
2016-03-17 21:12:20
阅读次数:
372