InterviewBit Academy is now Scaler!
InterviewBit Academy is now Scaler Academy!

Sum Of Fibonacci Numbers

How many minimum numbers from fibonacci series are required such that sum of numbers should be equal to a given Number N?
Note : repetition of number is allowed.


N = 4
Fibonacci numbers : 1 1 2 3 5 .... so on
here 2 + 2 = 4 
so minimum numbers will be 2 
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.
Start solving Sum Of Fibonacci Numbers on Interview Code Editor
Sign Up
to access hints and editorial solutions for Sum Of Fibonacci Numbers


Click here to start solving coding interview questions