{"ScriptPreparationCode":"function shuffle(arr) {\r\n let i = arr.length;\r\n while (i != 0) {\r\n let j = Math.floor(Math.random() * i);\r\n i--;\r\n [arr[i], arr[j]] = [\r\n arr[j], arr[i]];\r\n }\r\n}\r\n\r\nn = 1000\r\ntoRemove = [];\r\nfor (i = 0; i \u003C n; i\u002B\u002B) {\r\n toRemove.push(\u0022value\u0022 \u002B i);\r\n}\r\nshuffle(toRemove);","TestCases":[{"Name":"object","Code":"let a = {};\r\n// copy object and add item\r\nfor (i = 0; i \u003C n; i\u002B\u002B) {\r\n \ta = {...a};\r\n a[\u0022value\u0022 \u002B i] = null;\r\n}\r\n\r\n// copy object and remove item\r\ntoRemove.forEach(v =\u003E {\r\n \ta = {...a};\r\n delete a[v];\r\n});","IsDeferred":false},{"Name":"array","Code":"let a = [];\r\n// copy array and add item\r\nfor (i = 0; i \u003C n; i\u002B\u002B) {\r\n a = [...a];\r\n a.push(\u0022value\u0022 \u002B i);\r\n}\r\n\r\n// copy array and remove item\r\ntoRemove.forEach(v =\u003E {\r\n a = a.filter(x =\u003E x !== v);\r\n});","IsDeferred":false},{"Name":"set","Code":"let a = new Set();\r\n\r\n// copy set and add item\r\nfor (i = 0; i \u003C n; i\u002B\u002B) {\r\n a = new Set(a);\r\n a.add(\u0022value\u0022 \u002B i);\r\n}\r\n\r\n// copy set and remove item\r\ntoRemove.forEach(v =\u003E {\r\n a = new Set(a);\r\n a.delete(v);\r\n});","IsDeferred":false},{"Name":"immutable set","Code":"let a = Immutable.Set();\r\n\r\n// add item\r\nfor (i = 0; i \u003C n; i\u002B\u002B) {\r\n a = a.add(\u0022value\u0022 \u002B i);\r\n}\r\n\r\n// remove item\r\ntoRemove.forEach((v) =\u003E {\r\n a = a.delete(v);\r\n});","IsDeferred":false}]}