{"ScriptPreparationCode":null,"TestCases":[{"Name":"array","Code":"const arr = new Array(10000).fill(Math.floor(Math.random() * 1000));\r\nconst s = new Set(arr);\r\n\r\nfor (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n const idx = arr.indexOf(i);\r\n if (i !== -1) {\r\n arr.splice(idx, 1);\r\n }\r\n}","IsDeferred":false},{"Name":"set","Code":"const arr = new Array(10000).fill(Math.floor(Math.random() * 1000));\r\nconst s = new Set(arr);\r\n\r\nfor (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n if (s.has(i)) {\r\n s.delete(i);\r\n }\r\n}","IsDeferred":false}]}