shlogg · Early preview
Md Ariful Haque @mah-shamim

Software Engineering And Web Development Challenges

Solve graph problem with traffic signals: find second minimum time to reach destination from vertex 1 to n in a bi-directional connected graph.

2045. Second Minimum Time to Reach Destination
Hard
A city is represented as a bi-directional connected graph with n vertices where each vertex is labeled from 1 to n (inclusive). The edges in the graph are represented as a 2D integer array edges, where each edges[i] = [ui, vi] denotes a bi-directional edge between vertex ui and vertex vi. Every vertex pair is connected by at most one edge, and no vertex has an edge to itself. The time taken to traverse any edge is time minutes.
Each vertex has a traffic signal which changes its color from green to red and vice versa every change minutes. All...