Topic: Dynamic Programming Problem / Level: intermediate

Problem: Find the minimum cost to paint n houses with at most two adjacent houses of the same color using dynamic programming.

Run the code to see the output here...