"Traffic signaling"
npm start
- Create verticies from edges
- Traverse paths find the total intersections (Ti) and edge intersections (Ei) at each vertex
- Calculate cycle per edge at each intersection; cycle = floor(Ti / (Ti - Ei))
- This doesn't provide the optimal solution for every case, it's a greedy algorithm that works well for all cases
- A – An example - 2,000
- B – By the ocean - 4,565,706
- C – Checkmate - 1,294,235
- D – Daily commute - 1,580,662
- E – Etoile - 697,390
- F – Forever jammed - 1,285,348
Total Score: 9,425,341