</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Google Questions

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. ...

Asked at:Google

More Google interview questions

All Google interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.