1624. Largest Substring Between Two Equal Characters
https://leetcode.com/problems/largest-substring-between-two-equal-characters
Description
Given a string s
, return the length of the longest substring between two equal characters, excluding the two characters. If there is no such substring return -1
.
A substring is a contiguous sequence of characters within a string.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
1 <= s.length <= 300
s
contains only lowercase English letters.
ac
Previous1623. All Valid Triplets That Can Represent a CountryNext1625. Lexicographically Smallest String After Applying Operations
Last updated