Diameter of the treee

  1. In tree problems the time complexity of the program depends upon the recursive call made by the algorithm??
  2. For computing the complexity the recursion tree is best to derive recurrence relation ??

@Vikaspal

  1. yes
  2. yes
    and also to help solve recurrence relations, you can also look for master theorem on the internet.

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.