Odd Palindrome
Given a string s, return whether all its palindromic substrings have odd lengths.
Constraints
n ≤ 100,000wherenis the length ofs
https://binarysearch.com/problems/Odd-Palindrome
Examples
Example 1
Input
- s =
aa
Output
- answer =
False
Example 2
Input
- s =
bab
Output
- answer =
True
Leave a comment