Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 13d 03h 54m 21s13 days 3 hours 54 minutes 21 seconds.
Topic
Combinatorics questions ask you to count: arrangements, selections and paths. They usually sit underneath a probability question.
64 free, 52 with Premium.
Combinatorics is the mathematics of counting finite structures. In interviews it is usually the first step of a probability question with equally likely outcomes, so the real test is counting the right objects without double counting.
Arrangements of k from n are n!/(n − k)!; selections are C(n, k) = n!/(k!(n − k)!). Decide which you need before writing anything.
The number of ways to split n identical items into k groups is C(n + k − 1, k − 1).
|A ∪ B| = |A| + |B| − |A ∩ B|, extended with alternating signs. Derangements and surjections both follow from it.
Count something easier that is in one-to-one correspondence. Lattice paths, ballot sequences and balanced brackets all lead to Catalan numbers.
Problems marked with a lock are part of Premium.