1542. Find Longest Awesome Substring
https://leetcode.com/problems/find-longest-awesome-substring
Description
Given a string s
. An awesome substring is a non-empty substring of s
such that we can make any number of swaps in order to make it palindrome.
Return the length of the maximum length awesome substring of s
.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
1 <= s.length <= 10^5
s
consists only of digits.
ac
Last updated