Question: Big OFUNCTION algorithm 2 ( n ) IF n 1 THEN RETURN n END IF SET a = 0 SET b = 1 FOR i

Big OFUNCTION algorithm2(n)
IF n1 THEN
RETURN n
END IF
SET a=0
SET b =1
FOR i=2TOnDO
SET temp =a+b
a=b
b= temp
END FOR
RETURN b
Big OFUNCTION algorithm 2 ( n ) IF n 1 THEN

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!