For one to one functions
i have n things on one side and n things on other side. I have to pair them that is one to one.
The no of ways it can be done is n!
total no of functions that can be made is n^n
it is so because for each number in domain, i can match it with n number in codomain.
rest u know :)