Combinations nCr Small

Medium
2 views 25 Jan 2026
Compute nCr for small n (n...

Permutations nPr

Easy
2 views 25 Jan 2026
Compute nPr = n*(n-1)*...*(n-r+1)....

Count Binary Strings Without Consecutive 1s

Hard
4 views 25 Jan 2026
Given n, count length-n binary strings with no '11'....

Handshake Problem

Easy
3 views 25 Jan 2026
If there are n people and everyone shakes hands once, how many handshakes?...

Choose Team With Captain

Medium
4 views 25 Jan 2026
Choose r people from n and also pick a captain from chosen team....

Stars And Bars

Hard
3 views 25 Jan 2026
Count solutions of x1+...+xk = n with xi>=0....

Count Subsets Size K

Easy
2 views 25 Jan 2026
Given n and k, count k-sized subsets....

Binomial Identity Check

Medium
4 views 25 Jan 2026
Compute sum_{i=0..k} C(n,i) for given n,k....

Circular Arrangements

Easy
2 views 25 Jan 2026
Count ways to arrange n distinct items on a circle....

Derangements Small

Hard
4 views 25 Jan 2026
Compute number of derangements for n...