原题网址:https://www.lintcode.com/problem/longest-common-substring/description 描述 给出两个字符串,找到最长公共子串,并返回其长度。 描述 描述 给出两个字符串,找到最长公共子串,并返回其长度。 给出两个字符串,找到最长公共子串 ...
分类:
其他好文 时间:
2018-07-13 22:17:37
阅读次数:
146
SpringAOP&&定时任务简单实现接口访问入表和定时任务接口重试 Spring aop Spring 定时任务 代理模式深化 1.表设计 2.Aop主要代码 @Aspect @Component public class AopUtils implements Ordered { //当前 pr ...
分类:
编程语言 时间:
2018-07-13 15:18:29
阅读次数:
160
原题网址:https://www.lintcode.com/problem/longest-common-prefix/description 描述 给k个字符串,求出他们的最长公共前缀(LCP) 描述 描述 给k个字符串,求出他们的最长公共前缀(LCP) 给k个字符串,求出他们的最长公共前缀(LC ...
分类:
其他好文 时间:
2018-07-13 00:00:42
阅读次数:
187
"[POJ3764]The xor longest Path" 题目大意:给出一棵有$N$个节点的树,树上每条边都有一个权值。从树中选择两个点$x$和$y$,把$x$到$y$的路径上的所有边权$xor$,求最大值($N\le {10}^5$) 令$d[x]$为$x$到根的路径$xor$,易得$xor ...
分类:
其他好文 时间:
2018-07-11 17:06:30
阅读次数:
176
1.Trie "[POJ3764]The xor longest Path" 题目大意:给出一棵有$N$个节点的树,树上每条边都有一个权值。从树中选择两个点$x$和$y$,把$x$到$y$的路径上的所有边权$xor$,求最大值($N\le {10}^5$) 令$d[x]$为$x$到根的路径$xor$ ...
分类:
其他好文 时间:
2018-07-11 12:21:42
阅读次数:
159
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2018-07-10 22:07:33
阅读次数:
153
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 ...
分类:
其他好文 时间:
2018-07-10 00:37:31
阅读次数:
149
原题网址:https://www.lintcode.com/problem/longest-increasing-subsequence/description 描述 给定一个整数序列,找到最长上升子序列(LIS),返回LIS的长度。 描述 描述 给定一个整数序列,找到最长上升子序列(LIS),返回 ...
分类:
其他好文 时间:
2018-07-09 17:52:55
阅读次数:
177
编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 示例 2: 说明: 所有输入只包含小写字母 a-z 。 分析:这道题要求输出一个字符串的最长公共前缀。公共前缀的长度一定小于等于该数组中最字符串的长度,所以我们需要找到数组中长度最短的字符串当作参照 ...
分类:
编程语言 时间:
2018-07-08 22:09:15
阅读次数:
153
565. Array Nesting A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = { ...
分类:
其他好文 时间:
2018-07-08 21:15:10
阅读次数:
183