Search
⌘K

Leetcode 256. Paint House

Given an n×k cost matrix, choose a color for each house so that no two adjacent houses share the same color and the total painting cost is minimized; the core challenge is dynamic programming/optimization to compute the minimal total cost efficiently across k colors.

Asked at:

LinkedIn

LinkedIn


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early January, 2026

LinkedIn

LinkedIn

Senior

Late September, 2025

LinkedIn

LinkedIn

Senior

Comments

Your account is free and you can post anonymously if you choose.