Why use a List over a HashSet?
May be an obvious question, but I've seen plenty of reasons why to use a
HashSet over a list/array. I've heard it has O(1) for removing and
searching for data.
I've never heard why to use a list over a HashSet.
So why vice-versa?
No comments:
Post a Comment