Saibabaa Pragada wrote:Hi Mohammed, A map cannot contain duplicate keys. Set cannot contain duplicate elements. So, I am thinking all the options should be correct. Did I miss any part that you are saying?
Ah Am really sorry- Misread the question and details . Its given that: if searching is not a priority - So we can think of using Set. So the second details given is important to note.
Joined: Oct 24, 2010
if searching is not a priority, Why we should think of using Set ? I am not clear on the logic behind that