Coding Challenge · ADVANCED
A museum's security system is modeled as a network of rooms connected by corridors, where each corridor can be locked or unlocked. The museum director wants to know the minimum number of corridors that must be locked to ensure that no cycle of unlocked corridors exists (i.e., the unlocked corridors form a forest). Give…