Algorithm · Netflix · Easy
Consecutive Characters Easy · Topics · Company Tags · Hints For a non-empty string s, compute the maximum length of any contiguous block whose characters are all equal to one another. A block must occupy consecutive indices of s; it cannot skip characters. Return that maximum length as an integer. Example 1: Explanation: The four characters in "bbbb" form the longest uniform block. Example 2: Explanation: Runs such as "ss" and "pp" have length 2, but no block is longer than…
Checking your access…