{"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();\r\nlet newArray = [array[0]];\r\nfor(let i = 0; i \u003C array.length; i \u002B\u002B) {\r\n if(array[i-1] !== array[1]) {\r\n newArray.push(array[i])\r\n }\r\n}\r\n\r\nconsole.log(newArray);","IsDeferred":false},{"Name":"Set","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\nconsole.log([...new Set(array)]);","IsDeferred":false}]}