in GATE retagged by
331 views
0 votes
0 votes

How many times $fibon$$\left ( 3 \right )$ is called during invocation of $fibon$ $\left ( 6 \right )$?

$fibon(x) = fibon(x-1) + fibon(x-2)$
$fibon(0) = 1$
$fibon(1) = 1$

  1. 3
  2. 4
  3. 5
  4. 6
in GATE retagged by
by
331 views

1 Answer

5 votes
5 votes
Best answer

Make recursion tree for better understanding

edited by

2 Comments

sir how 6 ????
1
1
My answer is 6. But it is still showing correct answer as 3. Please rectify the mistake in paper.
0
0
Answer:

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

64.3k questions

77.9k answers

244k comments

80.0k users