Halloween Sale
Unlock all premium questions for over 30% off
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
- Employee Shift Timeline Intervalsmedium
- Two Car Destinationsmedium
- Rearrange House Numbers in Neighborhoodsmedium
- Count Distinct Elements in Each Windoweasy
- Merge Two Sorted Interval Listsmedium
- Fill Equation with Missing Operatorshard
- Cake Order Completion Counteasy
- Find Minimum Increment Moveseasy
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.