Consecutive Characters Problem
Consecutive Characters Problem — ExecCode Easy DSA Practice
Solve the Consecutive Characters problem on ExecCode. Free online easy DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.
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. Examples Example 1 Input: s = "leetcode" Output: 2 Explanation: The substring "ee" is of length 2 with the charact…
Practice Consecutive Characters free on ExecCode. Browse more ExecCode DSA problems.