码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
【easy】479. Largest Palindrome Product
Find the largest palindrome made from the product of two n-digit numbers Since the result could be very large, you should return the largest palindrom ...
分类:其他好文   时间:2018-02-12 16:49:24    阅读次数:130
分割回文串 II · Palindrome Partitioning II
[抄题]: 给定一个字符串s,将s分割成一些子串,使每个子串都是回文。 返回s符合要求的的最少分割次数。 [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二刷]: [三刷]: [四刷]: [ ...
分类:其他好文   时间:2018-02-10 22:36:34    阅读次数:263
9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 方法一: 思路: 判断一个整数是否为回文结构与Reverse Integer思路几乎相同,稍微修改即可。 方法二: 思路:将x转化为字符串再翻转,再将 ...
分类:其他好文   时间:2018-02-06 20:16:02    阅读次数:119
分割回文串 · Palindrome Partitioning
[抄题]: 给定一个字符串s,将s分割成一些子串,使每个子串都是回文串。 返回s所有可能的回文串分割方案。 给出 s = "aab",返回 [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二 ...
分类:其他好文   时间:2018-02-04 19:37:23    阅读次数:163
Leetcode 206. Reverse Linked List
Similar Questions Reverse Linked List II Binary Tree Upside Down Palindrome Linked List 思路:链表反转。 解法一:迭代。 解法二:递归。 Next challenges: Reverse Linked List ...
分类:其他好文   时间:2018-02-02 22:06:07    阅读次数:230
UVa -- 401 Palindromes
UVa-401 Palindromes Description A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string " ...
分类:其他好文   时间:2018-02-02 20:17:22    阅读次数:179
LeetCode——409. Longest Palindrome
题目: 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-01-29 17:35:00    阅读次数:145
LeetCode #5 Longest Palindrome
Description Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Sample 思路 回文串是正着读、反着读都 ...
分类:其他好文   时间:2018-01-29 16:22:31    阅读次数:186
[Leetcode] Palindrome Number
Palindrome Number 题解 题目来源:https://leetcode.com/problems/palindrome number/description/ Description Determine whether an integer is a palindrome. Do th ...
分类:其他好文   时间:2018-01-29 11:27:12    阅读次数:181
Leetcode 680: Valid Palindrome II
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Note: ...
分类:其他好文   时间:2018-01-28 11:18:06    阅读次数:131
1561条   上一页 1 ... 33 34 35 36 37 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!