Description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ..., aN) be any seq ...
分类:
其他好文 时间:
2018-08-26 15:42:02
阅读次数:
161
问题描述: 845. Longest Mountain in Array 845. Longest Mountain in Array 845. Longest Mountain in Array 845. Longest Mountain in Array DescriptionHintsSubm ...
分类:
其他好文 时间:
2018-08-24 10:52:14
阅读次数:
113
Description In an edge-weighted tree, the xor-length of a path p is defined as the xor sum of the weights of edges on p: ⊕ is the xor operator. We say ...
分类:
其他好文 时间:
2018-08-23 22:17:50
阅读次数:
261
描述:给一个字符串s,查找它的最长的回文子串。s的长度不超过1000。 ...
分类:
其他好文 时间:
2018-08-23 19:19:25
阅读次数:
185
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic ...
分类:
其他好文 时间:
2018-08-21 10:53:30
阅读次数:
134
Time limit2000 ms Memory limit65536 kB A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( ...
分类:
其他好文 时间:
2018-08-19 00:49:54
阅读次数:
153
Given array of integers, find the maximal possible sum of some of its k consecutive elements. Example For inputArray = [2, 3, 5, 1, 6] and k = 2, the ...
分类:
其他好文 时间:
2018-08-17 00:43:42
阅读次数:
166
题目描述: Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farth ...
分类:
其他好文 时间:
2018-08-14 21:55:51
阅读次数:
123
Description: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: ...
分类:
其他好文 时间:
2018-08-14 18:55:16
阅读次数:
148
Description: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", w ...
分类:
其他好文 时间:
2018-08-13 19:39:32
阅读次数:
110