WebMD Health interview question

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

Interview Answer

Anonymous

27 July 2017

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