阅读背景:

测试一个数字是否为斐波那契数列

来源:互联网 

I know how to make the list of the Fibonacci numbers, but i don't know how can i test if a given number belongs to the fibonacci list - one way that comes in mind is generate the list of fib. numbers up to that number and see if it belongs to the array, but there's got to be another, simpler and faster method.I know how to make the list of the Fibonacci nu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: