{"ScriptPreparationCode":null,"TestCases":[{"Name":"rec","Code":"function fibonacciR(n){\r\n\r\n if(n===2){\r\n return 1;\r\n }\r\n if(n===1){\r\n return 0;\r\n } else {\r\n return fibonacciR(n-1) \u002B fibonacciR(n-2);\r\n }\r\n \r\n}\r\nfibonacciR(33)\r\n","IsDeferred":false},{"Name":"for","Code":"function getNthFib(n) {\r\n let prev = 0;\r\n let result = 0;\r\n for(let i =0; i\u003Cn-1; i\u002B\u002B){\r\n if(i===0){\r\n result = 1;\r\n } else {\r\n result \u002B=prev;\r\n prev = result-prev;\r\n }\r\n \r\n }\r\n return result;\r\n}\r\ngetNthFib(33)\r\n","IsDeferred":false}]}