码迷,mamicode.com
首页 >  
搜索关键字:longest palindromic    ( 2914个结果
329. Longest Increasing Path in a Matrix
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do ...
分类:其他好文   时间:2019-11-07 13:40:29    阅读次数:75
329. 矩阵中的最长递增路径
题目: 给定一个整数矩阵,找出最长递增路径的长度。 对于每个单元格,你可以往上,下,左,右四个方向移动。 你不能在对角线方向上移动或移动到边界外(即不允许环绕)。 示例 1: 输入: nums = [ [9,9,4], [6,6,8], [2,1,1]] 输出: 4 解释: 最长递增路径为 [1, ...
分类:其他好文   时间:2019-11-04 13:35:19    阅读次数:81
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:其他好文   时间:2019-11-03 13:00:36    阅读次数:90
128. 最长连续序列
"128. 最长连续序列" 题目 给定一个未排序的整数数组,找出最长连续序列的长度。 要求算法的时间复杂度为 O(n)。 示例: 输入: [100, 4, 200, 1, 3, 2] 输出: 4 解释: 最长连续序列是 [1, 2, 3, 4]。它的长度为 4。 思路: 利用Set结构, 来简化每次 ...
分类:其他好文   时间:2019-11-02 11:38:27    阅读次数:88
D - Ugly Problem HDU - 5920
D - Ugly Problem HDU - 5920 Everyone hates ugly problems. You are given a positive integer. You must represent that number by sum of palindromic numbe ...
分类:其他好文   时间:2019-10-29 23:36:48    阅读次数:99
Leetcode_409_Longest Palindrome
"Longest Palindrome" Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built wit ...
分类:其他好文   时间:2019-10-27 20:41:43    阅读次数:92
leetcode 动态规划整理
动态规划整理 1.最长公共子序列 2.最长上升子序列 3.爬楼梯 4.最长公共子串 ...
分类:其他好文   时间:2019-10-25 23:35:37    阅读次数:115
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 ...
分类:其他好文   时间:2019-10-23 00:33:50    阅读次数:102
LeetCode 300. Longest Increasing Subsequence最长上升子序列 (C++/Java)
题目: Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, ...
分类:编程语言   时间:2019-10-20 19:57:56    阅读次数:102
【leetcode】1224. Maximum Equal Frequency
题目如下: Given an array nums of positive integers, return the longest possible length of an array prefix of nums, such that it is possible to remove exac ...
分类:其他好文   时间:2019-10-16 11:43:10    阅读次数:119
2914条   上一页 1 ... 23 24 25 26 27 ... 292 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!