Coding Challenge · INTERMEDIATE
A museum curator wants to install lights in a row of exhibit rooms, each with a specific brightness requirement. Each light can be placed in any room and can illuminate that room and up to k rooms to its right. The objective is to determine the minimum number of lights needed to ensure every room meets its brightness r…