{"ScriptPreparationCode":null,"TestCases":[{"Name":"HashTable","Code":"const array = [1, 2, 3, 1, 2, 3];\r\nconst itemsToRemove = [2, 3];\r\nvar hashtable = [],\r\n diff = [];\r\n\r\nfor (var i = 0; i \u003C array.length; i\u002B\u002B) {\r\n hashtable[array[i]] = true;\r\n}\r\n\r\nfor (var i = 0; i \u003C itemsToRemove.length; i\u002B\u002B) {\r\n if (hashtable[itemsToRemove[i]]) {\r\n delete hashtable[itemsToRemove[i]];\r\n }\r\n}\r\n\r\nfor (var k in hashtable) {\r\n diff.push(k);\r\n}","IsDeferred":false},{"Name":"Filter","Code":"const array = [1, 2, 3, 1, 2, 3];\r\nconst itemsToRemove = [2, 3];\r\narray.filter(el =\u003E !itemsToRemove.includes(el));","IsDeferred":false},{"Name":"ForLoop","Code":"const array = [1, 2, 3, 1, 2, 3];\r\nconst itemsToRemove = [2, 3];\r\nvar i, la = a.length, res = [];\r\n\r\nfor (i = 0; i \u003C la; i\u002B\u002B) {\r\n if (itemsToRemove.indexOf(array[i]) === -1) res.push(a[i]);\r\n}","IsDeferred":false}]}