Loading...
Is this your company?
In initial two rounds I was asked to remove all the duplicate elements from string array.
Anonymous
I used Hashset.
const removeDup = (arr) => { const out = []; const newSet = new Set(); for(elem of arr) { if(!newSet.has(elem)) { newSet.add(elem); out.push(elem); } } return out; }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.