Coding Challenge · ADVANCED
After a severe storm, a city's power grid is partially damaged. The grid consists of n substations, some of which are still operational. Each substation can be reactivated only if at least k of its directly connected neighboring substations are already operational. Given the initial operational substations and the grid…