Function combinations

Source
fn combinations(input: &[u32], groups: u32) -> u64
Expand description

Breadth first search over all possible package combinations as we want the fewest possible packages that sum to the target weight. Uses a bitmask as a set for each package combination.