given an array of numbers to remove the duplicates
Anonymous
Sort the array in place. Then iterate and you can easily find duplicates by comparing the current and previous values. Sort is n log n; iterate is n. Total is n log n.
Check out your Company Bowl for anonymous work chats.