Summer Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
14
:
03
:
45
:
25
Back to Dashboard
Maximum Color Run Length
Easy
A city has a footpath made of n blocks, each painted one of k colors. The beauty value of the footpath for a chief guest is defined as the length of the longest contiguous run of blocks painted in the guest's favorite color.
Given n, k, the color of each block (block_colors), and the guest's favorite color c, return the beauty value.
...
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.