Skip to content

Instantly share code, notes, and snippets.

View shaggyass's full-sized avatar

JYSUN shaggyass

View GitHub Profile
@shaggyass
shaggyass / dedup
Created February 4, 2016 15:38
dedup_intarray
/*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