retagged by
479 views

1 Answer

0 votes
0 votes

option D is correct because if we make the tree of lcs function calling level of Right  sub tree is m level and left  sub tree is n level than total will be (m+n) .. so that (m+n) will be function call  of this program

Answer:

Related questions

1 votes
1 votes
2 answers
1
Nitesh_Yadav asked Apr 11, 2022
275 views
What is the time complexity of the below mentioned recursive function.int f(n){ if(n!=1){ return f(n/2)+f(n/2);}elsereturn 10;} O(n)O(n^2)O(log n)O(n logn)
1 votes
1 votes
1 answer
2
0 votes
0 votes
3 answers
3
shikharV asked Nov 17, 2015
2,082 views
Given answer: BPlease explain
1 votes
1 votes
1 answer
4
shikharV asked Nov 15, 2015
1,029 views
The answer to the above problem is A but I am expecting it to be D as constant amount of work is required to solve each subproblem.