in Programming in C closed by
289 views
1 vote
1 vote
closed as a duplicate of: GATE CSE 2015 Set 2 | Question: 11
int fun(int n)

{

int x=1,k;

if(n==1) return x;

for(k=1;k<n;++k)

x=x+fun(k)*fun(n-k)

return x;

}

return value of fun(5)???   how to solve this using tree method approach???
in Programming in C closed by
by
289 views

1 comment

 Phalkey  i tried solving it with tree method but its very tedious, why don't you follow this approach, its best approach for questions like this https://gateoverflow.in/8060/gate2015-2-11

1
1

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true