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
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
http://poj.org/problem?id=3974 题目大意: 求最大回文子串长度。 ———————————————————— 马拉车板子题。 马拉车讲解先割。 (测试过如果写成函数的话会很慢(2000+ms),这么写是(200+ms),所以不美观就不美观吧)。 ...
分类:
其他好文 时间:
2017-12-03 14:48:05
阅读次数:
160
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
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
``` 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
``` 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
Determine whether an integer is a palindrome. Do this without extra space. 判断一个数是不是回文数 C++(182ms): Java(188ms): ...
分类:
其他好文 时间:
2017-11-16 15:50:43
阅读次数:
116
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