How can I determine whether a given number N
is a fibonacci number or not, if that number is not a fibonacci number how can I*determine the largest fibonacci number smaller than N
?
I found the solution via generating the series of fibonacci number with limit N
.
Is there any better way to do this in Python?
guys consider while DOWN VOTES, I've accepted the solution provided here. I do not think it as worthwhile since I have posted what I need and got the solution from you guys.
Thank You.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…