Given a list of cars traveling from point start to end with speed in the format [start, end, speed]. You need to return the list of smallest intervals (segments) and the average speed of vehicles in each of those intervals. Used for road color coding as per traffic prediction used in google maps or lately uber. The problem involves processing a list of cars […]

Read More