Coding Challenge · INTERMEDIATE
A museum has n rooms connected by hallways, each represented as an undirected edge between two rooms. For security, a guard must patrol from room 0 to room n-1, passing through the minimum number of rooms possible (including start and end). Your task is to determine the minimum number of rooms the guard must visit to c…