Longest Substring of One Repeating Character

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(n + k log n)

Space Complexity

O(n)