Data Structures & AlgorithmsModerateTCS NQT · CAT · MBA placement

How many strictly increasing sequences of length 4 can be formed from the values 1 to 10 (each sequence uses four distinct values, listed in increasing order)?

  1. A. 10000
  2. B. 1048576
  3. C. 210
  4. D. 840

Correct answer: C. 210

A strictly increasing sequence is determined entirely by its set of values, so the count is C(10, 4) = 210. Ordered tuples (10·9·8·7 = 5040) overcount, since each set appears once when sorted.

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

Exams that ask this topic