The xor-longest Path Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8273 Accepted: 1720 Description In an edge-weighted tree, the xor-leng ...
分类:
其他好文 时间:
2018-04-28 14:10:12
阅读次数:
153
[抄题]: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters ...
分类:
其他好文 时间:
2018-04-25 22:09:20
阅读次数:
159
leetcode题目Longest Substring Without Repeating Characters的思路及对网友代码的理解。 ...
分类:
其他好文 时间:
2018-04-24 11:12:20
阅读次数:
156
详见:https://leetcode.com/problems/longest-uncommon-subsequence-ii/description/ C++: 方法一: 方法二: 参考:http://www.cnblogs.com/grandyang/p/6680548.html ...
分类:
其他好文 时间:
2018-04-22 21:47:24
阅读次数:
475
详见:https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/ C++: 参考:http://www.cnblogs.com/grandyang/p/6523344.html ...
分类:
其他好文 时间:
2018-04-22 21:43:12
阅读次数:
157
给定两个字符串,你需要从这两个字符串中找出最长的特殊序列。最长特殊序列定义如下:该序列为某字符串独有的最长子序列(即不能是其他字符串的子序列)。子序列可以通过删去字符串中的某些字符实现,但不能改变剩余字符的相对顺序。空序列为所有字符串的子序列,任何字符串为其自身的子序列。输入为两个字符串,输出最长特 ...
分类:
其他好文 时间:
2018-04-22 18:12:37
阅读次数:
125
给定一个字符串s,找到其中最长的回文子序列。可以假设s的最大长度为1000。 详见:https://leetcode.com/problems/longest-palindromic-subsequence/description/ C++: 参考:http://www.cnblogs.com/gr ...
分类:
其他好文 时间:
2018-04-22 17:18:26
阅读次数:
133
题目:最长公共前缀 难度:EASY 题目内容: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an ...
分类:
编程语言 时间:
2018-04-21 23:34:12
阅读次数:
237
给定一个二进制数组, 计算其中最大连续1的个数。示例 1:输入: [1,1,0,1,1,1]输出: 3解释: 开头的两位和最后的三位都是连续1,所以最大连续1的个数是 3.注意: 输入的数组只包含 0 和1。 输入数组的长度是正整数,且不超过 10,000。详见:https://leetcode.c ...
分类:
其他好文 时间:
2018-04-21 22:29:03
阅读次数:
223
[抄题]: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: [暴力解法]: 时间分析 ...
分类:
编程语言 时间:
2018-04-21 17:41:00
阅读次数:
129