{"ScriptPreparationCode":null,"TestCases":[{"Name":"Object","Code":"const memo = {}\r\nfunction fibonacci(n) {\r\n if (n \u003C= 1) return n;\r\n if (memo[n]) return memo[n]\r\n memo[n] = fibonacci(n-1) \u002B fibonacci(n-2)\r\n return memo[n]\r\n}\r\nfibonacci(40)","IsDeferred":false},{"Name":"Map","Code":"const cache = new Map();\r\nfunction fibonacci(n) {\r\n if (n \u003C= 1) return n;\r\n if (cache.has(n)) {\r\n return cache.get(n);\r\n }\r\n cache.set(n, fibonacci(n-1) \u002B fibonacci(n-2))\r\n return cache.get(n)\r\n}\r\nfibonacci(40)","IsDeferred":false}]}