This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Description
Description of the Problem
Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique character.
Return the power of the string.
Code
class Solution: def maxPower(self, s: str) -> int:
Link To The LeetCode Problem
LeetCode