{"ScriptPreparationCode":"var values = new Array(5000);\r\n\r\nfor (let i = 0; i \u003C values.length; \u002B\u002Bi) {\r\n values[i] = i % 2;\r\n}","TestCases":[{"Name":"Reduce","Code":"const lines = {\r\n\todd: [],\r\n \teven: [],\r\n};\r\nvalues.reduce((_, curr) =\u003E {\r\n if (curr % 2 === 0) {\r\n\tif (!lines.even) {\r\n \tlines.even = [curr]\r\n } else {\r\n lines.even.push(curr);\r\n }\r\n } else {\r\n\tif (!lines.odd) {\r\n \tlines.odd = [curr]\r\n } else {\r\n lines.odd.push(curr);\r\n }\r\n }\r\n});","IsDeferred":false},{"Name":"for loop","Code":"const obj = {\r\n\todd: [],\r\n \teven: [],\r\n};\r\nfor (let i = 0; i \u003C values.length; i\u002B\u002B) {\r\n\tif (values[i] % 2 === 0) {\r\n \tobj.even.push(values[i]);\r\n } else {\r\n \tobj.odd.push(values[i]); \r\n }\r\n}\r\nreturn obj;","IsDeferred":false}]}