I was asked how would I remove duplicated from an array in Java
Utilisateur anonyme
I explained the same solution I did in the first interview. He then said I was allowed to use collections, so I said I would loop through the array and add it to a set. He then asked me to solve it using a map. Which I couldn't do, as to why you would use a map when it is the perfect use-case for a set is beyond me.