July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
32
:
27
Back to Dashboard
Bounded Repeat Substring
Medium
A sensor data stream is represented as a string of characters. A contiguous segment of the stream is considered valid if it contains no three consecutive identical characters. Find the length of the longest valid contiguous segment.
Example 1
...