Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MinPaintingCost ¶
MinPaintingCost uses dynamic programming to calculate the cheapest way to paint houses so that no adjacent houses have the same color.
Types ¶
type Houses ¶
type Houses []PaintingCosts
Houses represents a list of houses that can be painting a different color for a price.
type PaintingCosts ¶
type PaintingCosts []int
PaintingCosts represents the cost to paint in each of these colors.
Click to show internal directories.
Click to hide internal directories.