Leetcode 1473. Paint House III
Given m houses (some already painted and cannot be repainted) and n colors with painting costs, paint the remaining houses to produce exactly target contiguous color groups (neighborhoods) while minimizing total cost — a dynamic-programming state-space problem over position, chosen color, and neighborhood count (return -1 if impossible).
Asked at:
LinkedIn
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Late August, 2025
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.