码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果
2017 ACM/ICPC 沈阳 F题 Heron and his triangle
A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t−1, t, t+ 1 and thatits area is an intege ...
分类:其他好文   时间:2018-10-14 11:40:30    阅读次数:177
32. Longest Valid Parentheses
https://leetcode.com/problems/longest-valid-parentheses/description/ 来回做了好几遍,虽然AC 了但是这个解发肯定不是最优的。思路是把问题分两步解决:1. 把字符串转换成一个匹配括号的id 序列,比如第0 个和第3 个匹配了,则把0 ...
分类:其他好文   时间:2018-10-12 16:07:49    阅读次数:106
Longest Substring Without Repeating Characters
1 import java.util.Scanner; 2 3 /** 4 * Created by qmq 5 * Given a string, find the length of the longest substring without repeating characters. 6 * ... ...
分类:其他好文   时间:2018-10-12 11:57:22    阅读次数:166
leetcode543 - Diameter of Binary Tree - easy
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path betwe ...
分类:其他好文   时间:2018-10-11 13:41:53    阅读次数:156
32. Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:其他好文   时间:2018-10-11 01:35:51    阅读次数:147
03.Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters(最长的子串不重复字符) 题目要求:给定一个字符串,找到最长的子字符串的长度,要求不重复字符。 例如: 给定一个字符串“abcabcbb”,答案是“abc”,长度是3。 给定一个字符串“bbbbb”,答案是“ ...
分类:其他好文   时间:2018-10-10 22:02:26    阅读次数:176
104. Maximum Depth of Binary Tree
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-10-09 21:36:02    阅读次数:138
最长公共子序列(LCS)
一、最长公共子序列介绍 一个序列的子序列是在该序列中删去若干元素后得到的序列。例如:“ABCD”和“BDF”都是“ABCDEFG”的子序列。 最长公共子序列(Longest Common Subsequence,简写LCS)问题:给定两个序列X和Y,求X和Y长度最大的公共子序列。例如:X=“ABBC ...
分类:其他好文   时间:2018-10-09 18:11:30    阅读次数:213
Longest Common Substring($LCS$)
Longest Common Substring($LCS$) 什么是子序列? 子序列就是某一个序列的 不连续 的一部分. 如图, $abcde$就是图中序列的一个子序列。 公共子序列 公共子序列的定义就是两个序列共有的子序列啦. qwq 一些题目就会要求我们求两个序列的最长公共子序列。 如果直接去 ...
分类:其他好文   时间:2018-10-08 21:40:47    阅读次数:123
httprouter与 fasthttp 的性能对比
关于协议: 1 2 3 测试工具: 1 参数: 1 2 3 测试环境: 1 2 3 4 测试对象: 1 2 3 4 5 测试数据: 1、fasthttp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2 ...
分类:Web程序   时间:2018-10-08 15:58:12    阅读次数:1613
3017条   上一页 1 ... 56 57 58 59 60 ... 302 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!