{"ScriptPreparationCode":null,"TestCases":[{"Name":"Sort","Code":"let array = [];\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n array.push(1);\r\n array.push(i);\r\n}\r\n\r\narray.sort((a, b) =\u003E a - b);\r\nlet newArray = [array[0]];\r\nfor(let i = 1; i \u003C array.length; i \u002B\u002B) {\r\n if(array[i-1] !== array[i]) {\r\n newArray.push(array[i])\r\n }\r\n}","IsDeferred":false},{"Name":"Set","Code":"const array = [];\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n array.push(1);\r\n array.push(i);\r\n}\r\n\r\nconst out = [...new Set(array)];","IsDeferred":false}]}