Skip to content

Instantly share code, notes, and snippets.

@shaggyass
shaggyass / dedup
Created Feb 4, 2016
dedup_intarray
View dedup
/*Given the following class, write 3 methods that can be used to return an array that has no duplicates.
You should define a method signature that you feel is appropriate to the problem.
We would prefer to see three implementations (one that should take into consideration #4 below) and an explanation of what use-cases are suitable to each implementation
What if we need to retain the original order?
What are the positives and negatives of your solution? solution one and three will deliver the original order