Two Furthest Houses With Different Colors
There are n houses evenly lined up on the street, and each house is beautifully painted. You are given a 0-indexed integer array colors of length n, where colors[i] represents the color of the i<sup>th</sup> house.
Return the maximum distance between...
perfinsights.hashnode.dev1 min read