Hacker News new | ask | show | jobs
by Sharlin 1045 days ago
Nope. Combinations are subsets: you either include or exclude each element. So 2^n. With permutations, you have n options for the first element, (n-1) options for the second, and so on. Thus n! possibilities total.