首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
首页标签palindrome

#palindrome

680. Valid Palindrome II

ppxai

Given a non-empty string s, you may delete at most one character. Judge whether ...

9720

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

繁依Fanyi

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

25160

9. Palindrome Number(回文数)

砖业洋__

Determine whether an integer is a palindrome. An integer is a palindrome when it...

8810

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

benym

Lenovo · 后端开发 (已认证)

# 输入输出——简单的回文判断 # 代码 ''' 可以通过使用 seq[a:b] 来从位置 a 开 始到位置 b 结束来对序列进行切片 。我们同样可以提供第三个...

34020

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

梦飞

腾讯科技(深圳)有限公司 · 后台开发 (已认证)

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

31920

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

攻城狮杰森

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

22620

Leetcode 题目解析之 Palindrome Number

ruochen

若尘科技有限公司 · 开发 (已认证)

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

1.2K20

LeetCode 0214 - Shortest Palindrome

Reck Zhang

Tencent · Game Developer (已认证)

Given a string s, you are allowed to convert it to a palindrome by adding charac...

13530

LeetCode 0234 - Palindrome Linked List

Reck Zhang

Tencent · Game Developer (已认证)

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

18120

LeetCode 0336 - Palindrome Pairs

Reck Zhang

Tencent · Game Developer (已认证)

Given a list of unique words, find all pairs of distinct indices (i, j) in the g...

24430

LeetCode 0009 - Palindrome Number

Reck Zhang

Tencent · Game Developer (已认证)

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

14430

Palindrome - 9. Palindrome Number

ppxai

Determine whether an integer is a palindrome. An integer is a palindrome when it...

26120

Python算法题----Valid P

py3study

Given a string, determine if it is a palindrome, considering only alphanumeric c...

36720

39. 组合总和

lucifer210

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

42520

Palindrome Number

Tyan

1. Description 2. Solution class Solution { public: bool isPalindrome(int x)...

42530

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

yesr

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

24830

Manacher算法 && Longest && Shortest Palindrome

大学里的混子

Given a string s, you are allowed to convert it to a palindrome by adding charac...

29920

LeetCode409 Longest Palindrome

用户1665735

Given a string which consists of lowercase or uppercase letters, find the length...

33040

Leetcode Palindrome Number

Determine whether an integer is a palindrome. An integer is a palindrome when it...

37460

LeetCode 9. Palindrome Number分析代码

desperate633

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

23020
领券