Loading...
Is this your company?
Write a code to remove a duplicate from the given array
Anonymous
any other question related to coding and aptitude
def remove_duplicates(arr): return list(set(arr)) arr = [1, 2, 2, 3, 4, 4, 5] print("Original Array:", arr) arr = remove_duplicates(arr) print("Array After Removing Duplicates:", arr)
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.
Get actionable career advice tailored to you by joining more bowls.
Check out your Company Bowl for anonymous work chats.