LeetCode

Paint House II

Click here for an explanation.