Problem 2078 · Easy

Two Furthest Houses With Different Colors

Find the greatest distance between two houses with different colors.

Open the interactive visualisation