Good morning! Here's your coding interview problem for today.
This problem was asked by Facebook.
A builder is looking to build a row of N houses that can be of K different
colors. He has a goal of minimizing cost while ensuring that no two neighboring
houses are of the same color.
Given an N by K matrix where the nth row and kth column represents the cost to
build the nthhouse with kth color, return the minimum cost which achieves this
goal.
Good morning! Here's your coding interview problem for today.
This problem was asked by Facebook.
A builder is looking to build a row of N houses that can be of K different colors. He has a goal of minimizing cost while ensuring that no two neighboring houses are of the same color.
Given an N by K matrix where the nth row and kth column represents the cost to build the nthhouse with kth color, return the minimum cost which achieves this goal.
Upgrade to premium [http://links.dailycodingproblem.com/wf/click?upn=-2F03iMydR750DKx07F4BRwWErdzWeRmfVcT48gFYejU-2Bz6QcOxyCKetP6lYnXnpQi4KDQjG5YX4vCNlX3sdbfos06VT5YoRFkg4TrA1RVZWv0DZHacVnT6CRVrZdYdIbA_iscjqzEYz8RolbSgMQLtCXgsn2DW3ZG-2FJEHwGBaE-2FdXQXrsw4sZLvIzuYvaSpj4FQyqDEVJpS9xdx-2B5K8LEruvlbOM3p1Zu02o69YlSZwMN-2FXteEWGSJbG9Qs8zY8CgFe8jRdPA2xZmPAkqAYH0EwOBdJ-2FEI-2Bj6XJaA8RNtTU0oTq2CV3X4rTbZ7nlgTwIYklDYvrnHa3hKinmsZG9C01deDQlDxr9HdDLS5-2BIfmI1o-3D] and get in-depth solutions to every problem.
If you liked this problem, feel free to forward it along! As always, shoot us an email if there's anything we can help with!
No more? Unsubscribe [http://links.dailycodingproblem.com/wf/click?upn=-2F03iMydR750DKx07F4BRwTq4x5HkPwxRhpDWfk1b7nXvgvDhSC78LLls-2Bvqs1KQvHGZzlxUHjTKmlyywaw1SP8zvxacCSMPWWHMDKM6wdS5Jl1I3MW0lfGAMY6ZLmyd0PQd5Ii-2F27lf3r61PXBXKc4STUNjbJNoKX2Dov-2Fr9Cag7e39ot-2F6XWTzq2lck7ESA_iscjqzEYz8RolbSgMQLtCXgsn2DW3ZG-2FJEHwGBaE-2FdXQXrsw4sZLvIzuYvaSpj4FQyqDEVJpS9xdx-2B5K8LEruleqpOANUp7DVNtRWvX-2FLfLIE5SkWKJfQllYfagycCDMHpiHsWdbuWbtzQcUTzYWauU1-2FqFBGmbLlmY1U11DCDsHVPMNV-2FK2C15cSL4mG5amQnp9zDb1-2FnPtGgpJh8IgOYaNbhrDqmSdh1Z7-2F0KCwOc-3D] .