{"ScriptPreparationCode":"var sets = [\r\n new Set(),\r\n new Set(new Array(15).fill(null).map((_,i) =\u003E i)),\r\n new Set([null]),\r\n new Set([1]),\r\n new Set([1,2,3]),\r\n new Set([]),\r\n new Set(new Array(33).fill(null).map(() =\u003E Math.random()))\r\n];","TestCases":[{"Name":"size check","Code":"let count = 0;\r\nwhile (sets.length) {\r\n const set = sets.pop();\r\n if (set.size) {\r\n for (const value of set) {\r\n count \u002B= value;\r\n set.delete(value);\r\n }\r\n }\r\n}","IsDeferred":false},{"Name":"no size check","Code":"let count = 0;\r\nwhile (sets.length) {\r\n const set = sets.pop();\r\n for (const value of set) {\r\n count \u002B= value;\r\n set.delete(value);\r\n }\r\n}","IsDeferred":false}]}