{"ScriptPreparationCode":"var arr = [1, 2, 3, 4, 10, 23, 3, 67];","TestCases":[{"Name":"single loop","Code":"let min = Infinity;\r\nlet max = -Infinity;\r\n\r\nfor(let i = 0 ; i \u003C arr.length ; i\u002B\u002B) {\r\n\tif(arr[i] \u003C min)\r\n min = arr[i];\r\n \r\n \tif(arr[i] \u003E max) \r\n max = arr[i];\r\n}\r\n\r\nconsole.log(\u0060\r\n\tmin: ${min}\r\n\tmax: ${max}\r\n\u0060);","IsDeferred":false},{"Name":"two loops","Code":"let min = Infinity;\r\nlet max = -Infinity;\r\n\r\nfor(let i = 0 ; i \u003C arr.length ; i\u002B\u002B) {\r\n\tif(arr[i] \u003C min)\r\n min = arr[i];\r\n}\r\n\r\nfor(let i = 0 ; i \u003C arr.length ; i\u002B\u002B) {\r\n \tif(arr[i] \u003E max) \r\n max = arr[i];\r\n}\r\n\r\nconsole.log(\u0060\r\n\tmin: ${min}\r\n\tmax: ${max}\r\n\u0060);","IsDeferred":false}]}