{"ScriptPreparationCode":null,"TestCases":[{"Name":"push","Code":"const arr = []\r\nconst length = 100000\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr.push(i, 1)\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false},{"Name":"index","Code":"const arr = []\r\nconst length = 100000\r\narr.length = length*2\u002B1\r\nfor(let i = 0; i \u003C length; i\u002B\u002B)\r\n{\r\n arr[i*2] = i;\r\n arr[i*2\u002B1] = 1;\r\n}\r\nconsole.log(arr[0], arr[100], arr[1000], arr[10001], arr[20000])","IsDeferred":false}]}