Given N houses and the costs to paint each house red, green, or blue, find the minimum amount required to paint all houses such that no two adjacent houses share the same color.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.