Problem 683 · Hard

K Empty Slots

Turn bulbs on one day at a time and find the first day two lit bulbs have exactly k dark bulbs between them.

Open the interactive visualisation