{"ScriptPreparationCode":"function shuffle(array) {\r\n for (let i = array.length - 1; i \u003E 0; i -= 1) {\r\n const j = Math.floor(Math.random() * (i \u002B 1));\r\n [array[i], array[j]] = [array[j], array[i]];\r\n }\r\n}\r\n\r\nfunction getRandomArray(size) {\r\n const arr = Array(size).fill(0).map((el, i) =\u003E i);\r\n shuffle(arr);\r\n return arr;\r\n}\r\n\r\nvar arr = getRandomArray(1e6);","TestCases":[{"Name":"For","Code":"var min = arr[0];\r\n\r\n for (var i = 0; i \u003C arr.length; i \u002B= 1) {\r\n if (arr[i] \u003C min) {\r\n min = arr[i];\r\n }\r\n }","IsDeferred":false},{"Name":"Math.min","Code":"var min = arr[0];\r\nvar l = arr.length;\r\n\r\n for (var i = 0; i \u003C l; i \u002B= 1) {\r\n if (arr[i] \u003C min) {\r\n min = arr[i];\r\n }\r\n }","IsDeferred":false}]}