{"ScriptPreparationCode":null,"TestCases":[{"Name":"set ","Code":"const set = new Set()\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n set.add(i)\r\n}\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n console.log(set.has(i))\r\n }","IsDeferred":false},{"Name":"reduce ","Code":"const wordHash = new Array(1000).fill().map((_,i) =\u003E i).reduce((hash, char) =\u003E {\r\n hash[char] = 1;\r\n return hash;\r\n}, {});\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n console.log(wordHash[i])\r\n }","IsDeferred":false}]}