Loading...
Engaged Employer
Was asked a question to remove duplicate elements in an array
Anonymous
Just use a hashtable
def removeduplicates(arr): return [i for i in set(arr)] or def removeduplicates(arr): for a in arr: if arr.count(a) > 1: arr.remove(a) return arr
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 personalized job recommendations and updates by starting your searches.