Problem of understanding min1, min2

  • 0

    "if the current color's index is same as min1, then we have to go with min2"
    I can not understand this sentence.

    For example:
    House 0, [color3]
    House 1, [min1 color2, min2, color3]
    House 2, [min1 color2, min2 color5]

    If House 1 and House 2 both have min1 color2, for House1, you can not go to color3, because House0 is color3.

    Can anyone explain this sentence please?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.