最新 最热

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.

2023-11-18
0

【Python 随练】判断一个5位数是否为回文数

一个 5 位数,判断它是不是回文数。即 12321 是回文数 ,个位与万位相同,十位与千位相同。

2023-10-12
0

9. Palindrome Number(回文数)

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

2023-05-06
0

输入输出——简单的回文判断

# 输入输出——简单的回文判断# 代码'''可以通过使用 seq[a:b] 来从位置 a 开始到位置 b 结束来对序列进行切片 。我们同样可以提供第三个参数来确定切片的步长(Step)。默认的步长为 1 ,它会返回一份连续...

2022-07-14
0

<Sicily>1005. Prime Palindromes质数回文数的判断方法

1005. Prime Palindromes Time Limit: 1sec Memory Limit:256MB

2022-06-23
0

【欧拉计划第 4 题】最大回文数乘积 Largest palindrome product

judge() 判断数字是否为回文数时,用到了数位截取,和 2021 年蓝桥杯省赛 C++ 组 B 题有类似思想,详情参考

2022-06-03
1

Leetcode 题目解析之 Palindrome Number

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

2022-01-15
0

LeetCode 0214 - 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...

2021-08-11
1

LeetCode 0234 - Palindrome Linked List

Given a singly linked list, determine if it is a palindrome.

2021-08-11
0

LeetCode 0336 - Palindrome Pairs

Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + words[j] ...

2021-08-11
1