There are colors of length colors[i] represents the color of the
The distance between the
Return the maximum possible distance between two houses that have different colors.
Constraints:
n == colors.length
colors[i]
At least two houses have different colors in the generated test data.
There are colors of length colors[i] represents the color of the
The distance between the
Return the maximum possible distance between two houses that have different colors.
Constraints:
n == colors.length
colors[i]
At least two houses have different colors in the generated test data.