Skip to main content
1 of 4

Selection of lists among list of lists to maximize coverage and avoid repetitions

There is a list of 'list of consecutive integers'. There could be a single integer as well.

For eg, 2,3,4|3,4,5|3,4,5,6|7|4,5,6,7

Also given is the minimum and maximum integer of all lists combined (2,7) in above case.

Once can choose either one or more or all of above lists. The aim is to maximize coverage in (2,7) without having a single repetition of any integer across all lists.

For eg, 3,4,5,6 & 7 seems to be covering the most in above case.