LeetCode Palindromic Substrings Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end indexes are counted as different substrings even they consist of same... Read More

# Tag Archives: 回文

# LeetCode Palindrome Partitioning

LeetCode Palindrome Partitioning Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return , ... Read More

# LeetCode Longest Palindromic Subsequence

LeetCode Longest Palindromic Subsequence Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1: Input: "bbbab" Output: 4 One possible longest palindromic subsequence... Read More

# LeetCode Longest Palindrome

LeetCode 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. This is case sensitive, for example "Aa" is not considered a palindrome... Read More

# LeetCode Palindrome Linked List

LeetCode 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? 本题要判断一个单向链表是否为回文链表。之前LeetCode Valid... Read More

# LeetCode Valid Palindrome

LeetCode Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you... Read More

# LeetCode Palindrome Partitioning II

LeetCode Palindrome Partitioning II Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "aab", Return 1 since the palindrome... Read More

# LeetCode Palindrome Number

LeetCode Palindrome Number Determine whether an integer is a palindrome. Do this without extra space. Some hints:Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using... Read More

# LeetCode Longest Palindromic Substring

LeetCode Longest Palindromic Substring Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic... Read More

# hihoCoder 1032-最长回文子串

hihoCoder 1032-最长回文子串 #1032 :... Read More