Google Hash Code is a team programming competition that lasts about 4 hours, in which a solution to multiple inputs of a problem must be given, points are given depending on how good it is.
The problem
In 2021 a city road network was given and planned paths for all cars in it, we had to optimize the schedule of traffic lights to minimize the total amount of time spent and help as many cars as possible reach their destination.
The full problem statement is below: