You are given an n x 3 matrix costs where costs[i][0], costs[i][1], and costs[i][2] represent the cost of painting building i with Red, Green, or Blue respectively. No two adjacent buildings can have…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.