</>OfferRetriever
DashboardDiscuss
NEW

Halloween Sale

Unlock all premium questions for over 30% off

$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Google Questions

Paint a Row of Houses

Hard

Question

Fresh paint is coming to a street, and the builder in charge wants to know how many color plans are possible. The street has n houses side by side, and the palette offers k colors labeled 0 to k - 1. Count how many ways the row can be painted when both of these rules hold: ...

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.