WebMD Health Interview Question

Write a function to remove duplicates from an array. I was then asked it's time complexity

Interview Answer

Anonymous

Jul 27, 2017

function removeDuplicates(a){ var uniqueElements = a.length; for(var i=0; i