• + 5 comments

    Can you explain why you choose HashSet over ArrayList etc. Is it due to time Complexity or due to the fact that a set cant contain duplicate elements.?