34/40
Part 7 of 7 · Follow-upsLearn

A small set? Put it in a bitmask

Smallest Sufficient Team is on an Airbnb LeetCode tag list, tagged Bitmask (1 source). The task is the fewest people who together have every required skill. The state is the set of skills covered so far. With 16 skills or fewer, a set fits in an integer whose bit k says whether skill k is covered.

Predict

The state is the set of skills covered so far. With 16 skills, how many states can there be?

Pick an answer above to see the rest