[抄题]: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example,Given [100, 4, 200, 1, 3, 2],The ...
分类:
其他好文 时间:
2018-01-13 00:14:31
阅读次数:
106
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2018-01-09 22:13:57
阅读次数:
249
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: 暂时还没写出来 ...
分类:
其他好文 时间:
2018-01-07 20:04:09
阅读次数:
99
最大回文子序列在:http://www.cnblogs.com/stAr-1/p/7444994.html ...
分类:
其他好文 时间:
2018-01-01 18:19:26
阅读次数:
116
"欢迎fork and star:Nowcoder Repository github" 128. Longest Consecutive Sequence 题目 解析 I have seen a lot of discussion about this problem.In my opinion, ...
分类:
其他好文 时间:
2018-01-01 17:02:55
阅读次数:
178
首先弄清楚Substring和Subsequence,前者是子串,要求连续,后者是子序列,可以不连续 ...
分类:
其他好文 时间:
2017-12-31 22:30:09
阅读次数:
213
一 字符串中的最大回文串(第5题) Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of sis 1000. Example: Example: ...
分类:
编程语言 时间:
2017-12-28 19:45:13
阅读次数:
249
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-12-28 19:43:28
阅读次数:
149
leetcode 第一天 2017年12月24日 第一次刷leetcode真的是好慢啊,三道题用了三个小时,而且都是简单题。 数组 1.(674)Longest Continuous Increasing Subsequence JAVA Python 2.(283)Move Zeroes JAVA ...
分类:
其他好文 时间:
2017-12-26 00:46:22
阅读次数:
145
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra ...
分类:
其他好文 时间:
2017-12-25 11:30:46
阅读次数:
109