{"ScriptPreparationCode":"var values = new Array(10000);\r\n\r\nfor (let i = 0; i \u003C values.length; \u002B\u002Bi) {\r\n values[i] = i % 20;\r\n}","TestCases":[{"Name":"Math.min() and Math.max()","Code":"const min = Math.min(...values);\r\nconst max = Math.max(...values);\r\nreturn {min, max}","IsDeferred":false},{"Name":"Reduce","Code":"return values.reduce(\r\n (acc, value ) =\u003E {\r\n if (acc.min \u003E value) acc.min = value\r\n if (acc.max \u003C value) acc.max = value\r\n\r\n return acc\r\n },\r\n { min: Infinity, max: 0 }\r\n )\r\n","IsDeferred":false}]}