1446. Consecutive Characters
https://leetcode.com/problems/consecutive-characters
Description
The power of the string is the maximum length of a non-empty substring that contains only one unique character.
Given a string s
, return the power of s
.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
1 <= s.length <= 500
s
consists of only lowercase English letters.
ac
Last updated