Find Consecutive Characters.
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.
LeetCode Problem: Link | Click Here
class Solution {
public int maxPower(String s) {
...
perfinsights.hashnode.dev1 min read