Coding Challenge · INTERMEDIATE
A museum has several rooms connected by hallways. To ensure security, a guard must patrol from the entrance room to the exit room, passing through each room at most once. Given the map of rooms as an undirected graph, count the number of distinct patrol routes from the entrance to the exit where no room is visited more…