66. remove duplicates from an array

JavaScriptAlgorithm

medium  - accepted / - tried

Given an array containing all kinds of data, please implement a function deduplicate() to remove the duplicates.

You should modify the array in place. Order doesn't matter.

What is time & space cost of your approach?

Think aloud!

(61)