Sunset Hills

Visual demonstration of working with an array. A row of buildings representing an array will be colored according to whether they have a view of the sunset to the west. Click Solve to see it in action.