码迷,mamicode.com
首页 >  
搜索关键字:e pig and palindrome    ( 2194个结果
141. Linked List Cycle 判断链表中是否存在“环”
141. Linked List Cycle Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 快慢指针 ...
分类:其他好文   时间:2017-10-24 20:49:28    阅读次数:141
234. Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. 题目含义:给定一个单列表,判断是否构成回文 ...
分类:其他好文   时间:2017-10-24 17:12:27    阅读次数:163
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. This ...
分类:其他好文   时间:2017-10-23 21:41:02    阅读次数:144
Python 解LeetCode:680. Valid Palindrome II
题目:给定一个字符串,在最多删除一个字符的情况下,判断这个字符串是不是回文字符串。 思路:回文字符串,第一想到的就是使用两个指针,前后各一个,当遇到前后字符不一致的时候,有两种情况,删除前面字符或者删除后面字符。由于删除一个字符后剩下的仍旧是字符串,可以直接递归处理了。然后用一个flag,当达到2时 ...
分类:编程语言   时间:2017-10-23 18:06:16    阅读次数:287
Palindrome Permutation II
Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form ...
分类:其他好文   时间:2017-10-22 10:54:56    阅读次数:166
9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 题目含义:不要使用额外空间,判断整数是否为回文 ...
分类:其他好文   时间:2017-10-20 21:44:22    阅读次数:211
css 讲浮动,haslayout,BFC的文章
这篇专门讲 BFC和haslayout的 这篇就不用说了,讲浮动的,张鑫旭大神的 , 这一系列有三篇 ...
分类:Web程序   时间:2017-10-19 21:12:35    阅读次数:242
[LeetCode] 131. Palindrome Partitioning Java
题目: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For ex ...
分类:编程语言   时间:2017-10-17 15:02:23    阅读次数:163
Educational Codeforces Round 29(6/7)
1、Quasi-palindrome 题意:问一个字符串(你可以添加前导‘0’或不添加)是否是回文串 思路:将给定的字符串的前缀‘0’和后缀‘0’都去掉,然后看其是否为回文串 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 ...
分类:其他好文   时间:2017-10-17 01:08:57    阅读次数:217
125. Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan ...
分类:其他好文   时间:2017-10-16 23:35:07    阅读次数:383
2194条   上一页 1 ... 55 56 57 58 59 ... 220 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!