Data Structures & AlgorithmsHard

How many NON-EMPTY subsets of 2 3 5 7 11 13 have a product that is at most 60?

  1. A. 19
  2. B. 20
  3. C. 63
  4. D. 18

Correct answer: A. 19

Enumerate all 63 non-empty subsets and multiply their elements; the bound is inclusive. Using a strict bound, counting the empty set, or switching to sums each change the count.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic