Each operation pays the sum of a length-k window and flips one 1 inside it to 0. What is the cheapest way to clear every 1?
Each operation pays the sum of a length-k window and flips one 1 inside it to 0. What is the cheapest way to clear every 1?
The discussion opens with the full question.