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 ...
分类:
其他好文 时间:
2017-06-18 23:33:51
阅读次数:
171
题目: Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is ...
分类:
编程语言 时间:
2017-06-18 18:13:52
阅读次数:
163
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo ...
分类:
其他好文 时间:
2017-06-18 18:08:00
阅读次数:
127
为了方便理解知识,我通常会对一些英语简写追根溯源,在火狐开发者社区里面找到了一些资料。 li是 list item的简写不是list的简写 ol是ordered list的简写 ul是unordered list的简写 web标准规定li必须在ol里面或者ul里面。为什么?怎么理解呢? 明白了上面的 ...
分类:
其他好文 时间:
2017-06-18 10:42:32
阅读次数:
184
题目:Longest Increasing Path in a Matrix Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to ...
分类:
其他好文 时间:
2017-06-17 22:33:29
阅读次数:
163
class Solution { public: int lengthOfLongestSubstring(string s) { int hashTable[255]; fill(hashTable, hashTable+255, -1); int start = 0, maxLen = 0; f... ...
分类:
其他好文 时间:
2017-06-17 19:36:29
阅读次数:
106
//**************************************************************************************************** // // 求一个数组的最长递减子序列 - C++ - by Chimomo // // 题目 ...
分类:
编程语言 时间:
2017-06-17 13:08:27
阅读次数:
170
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: ...
分类:
其他好文 时间:
2017-06-17 12:11:51
阅读次数:
128
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 ...
分类:
其他好文 时间:
2017-06-17 10:03:46
阅读次数:
206
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1041 LCS类型的题,不过并不是找common character,而 ...
分类:
其他好文 时间:
2017-06-13 22:41:36
阅读次数:
192