题解 | #判断斐波那契数组#
判断斐波那契数组
https://www.nowcoder.com/practice/9df2a366eb25495caff41612bd0ffca6
{"css":"","js":"","html":"<!DOCTYPE html>\n<html>\n <head>\n <meta charset=utf-8>\n </head>\n <body>\n \t\n <script type=\"text/javascript\">\n const _isFibonacci = array => {\n // 补全代码\n function judement(){\n for(let i = 2;i<array.length;i++){\n if(array[i] != array[i-1]+array[i-2]) return false\n }\n return true\n }\n return array.length < 3?false:judement()\n }\n </script>\n </body>\n</html>","libs":[]}