双指针
Data Structures & Algorithms · 4 notes
- Check Palindromehistorical
Given a string, write a function to determine whether it is a palindrome. Return true if it is, otherwise return false.
- Reverse Stringhistorical
Write a program that accepts a string and outputs the reversed string. (The string length does not exceed 1000.).
- Palindromic Substringshistorical
Given a string, calculate how many palindromic substrings it contains.
- Longest Palindromic Substringhistorical
Given a string s, find the longest palindromic substring in s.