2 views
25 Jan 2026
Compute nCr for small n (n...
2 views
25 Jan 2026
Compute nPr = n*(n-1)*...*(n-r+1)....
4 views
25 Jan 2026
Given n, count length-n binary strings with no '11'....
3 views
25 Jan 2026
If there are n people and everyone shakes hands once, how many handshakes?...
4 views
25 Jan 2026
Choose r people from n and also pick a captain from chosen team....
3 views
25 Jan 2026
Count solutions of x1+...+xk = n with xi>=0....
2 views
25 Jan 2026
Given n and k, count k-sized subsets....
4 views
25 Jan 2026
Compute sum_{i=0..k} C(n,i) for given n,k....
2 views
25 Jan 2026
Count ways to arrange n distinct items on a circle....
4 views
25 Jan 2026
Compute number of derangements for n...