码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
Chtholly's request code force-897B
If a number is palindrome and length of its decimal representation without leading zeros is even, we call it a zcy number. A number is palindrome mean ...
分类:其他好文   时间:2017-12-09 00:46:04    阅读次数:271
POJ 3974 Palindrome | 马拉车模板
给一个字符串,求最长回文字串有多长 ...
分类:其他好文   时间:2017-12-04 15:01:33    阅读次数:148
Palindrome
title: HDU - 1513 A palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are t ...
分类:其他好文   时间:2017-12-03 18:54:40    阅读次数:155
POJ3974:Palindrome——题解
http://poj.org/problem?id=3974 题目大意: 求最大回文子串长度。 ———————————————————— 马拉车板子题。 马拉车讲解先割。 (测试过如果写成函数的话会很慢(2000+ms),这么写是(200+ms),所以不美观就不美观吧)。 ...
分类:其他好文   时间:2017-12-03 14:48:05    阅读次数:160
LeetCode 234. Palindrome Linked List (回文链表)
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? 题目标签:Linked List 题目给了我们一个 linked l ...
分类:其他好文   时间:2017-12-02 12:58:04    阅读次数:110
HDU 1544 Palindromes(回文字符子串)
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome becau ...
分类:其他好文   时间:2017-11-30 21:44:26    阅读次数:171
leetcode — palindrome-partitioning-ii
``` import java.util.Arrays; /** * * Source : https://oj.leetcode.com/problems/palindrome-partitioning-ii/ * * Given a string s, partition s such that... ...
分类:其他好文   时间:2017-11-21 22:10:36    阅读次数:129
leetcode — palindrome-partitioning
``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Source : https://oj.leetcode.com/problems/palindrome-partitionin... ...
分类:其他好文   时间:2017-11-21 22:04:35    阅读次数:141
9. Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 判断一个数是不是回文数 C++(182ms): Java(188ms): ...
分类:其他好文   时间:2017-11-16 15:50:43    阅读次数:116
Palindrome Pairs
Naive Solution: Time: O(n^2*k) with n the total number of words in the "words" array and k the average length of each word: check each combination see ...
分类:其他好文   时间:2017-11-13 13:46:14    阅读次数:197
1561条   上一页 1 ... 35 36 37 38 39 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!