How to do this,what should be the logic
Diwali light dp prob
@Vikas_890
for n elements, a pair is equal to 1 if both the elements in it are strictly one and we need k such pairs, for all the other pairs we need them to be zero i.e. one of the element of those should be zero or both can be zero
considering these constraints you should be able to solve this