Frage im Vorstellungsgespräch bei Vaken Technologies

Write a code to remove a duplicate from the given array

Antworten zu Vorstellungsgespräch

Anonym

17. Aug. 2024

any other question related to coding and aptitude

Anonym

4. Dez. 2024

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)