Relation Reflexive Check

Medium
3 views 25 Jan 2026
Given n and a list of pairs (a,b), check if relation is reflexive....

Set Union Size

Easy
3 views 25 Jan 2026
Given sizes |A|,|B| and |A∩B|, compute |A∪B|....

Count Functions

Medium
3 views 25 Jan 2026
How many functions from set of size n to set of size m?...

Injective Functions Count

Hard
4 views 25 Jan 2026
Count injective functions from n to m (n...

Surjective Functions Small

Hard
2 views 25 Jan 2026
Count surjections from n to m for small n,m (...