最新 最热

LeetCode 0009 - Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space.

2021-08-11
1

Palindrome - 9. Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

2020-09-23
1

Python算法题----Valid P

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.

2020-01-14
1

39. 组合总和

给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。

2019-09-29
2

Palindrome Number

1. Description2. Solutionclass Solution {public: bool isPalindrome(int x) { if(x < 0)

2019-05-25
1

【每天一道编程系列-2018.2.26】(Ans)

Determine whether an integer is a palindrome. Do this without extra space.

2019-03-14
1

Manacher算法 && Longest && Shortest Palindrome

Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by per...

2019-02-22
4

LeetCode409 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.

2019-02-19
2

Leetcode Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.

2018-09-04
1

LeetCode 9. Palindrome Number分析代码

最常规的思路是直接将数反转再对比,但实际上,我们只需要反转后半部分跟前半部分对比就可以了。两种情况,一是位数为偶数,直接对比,位数为奇数,大数除以10对比。...

2018-08-22
1