unable to understand how to make recuurance relation for the question also please provide some resources to guide me hot to make recurrances for such problems like a pro.
please help asap.
Unable to understand reccurance relation
hello @02.adarsh.99
recurrence should be:
check(n)=check(n-1) + (n-1)*check(n-2)
if the first person goes alone then the number of ways is given by check(n-1) and if the first person wants to take someone then number of ways is given by (n-1)*check(n-2).
practice more number of problem to get comfortable with it.
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.