- The is Implemented using a hash table.
- Its elements are not ordered.
- The add, remove, and contains methods of a
- Time complexity O(1).
- is implemented using a tree structure.
- The elements in a are sorted.
- The add, remove, and contains methods.
- Time complexity O(logn).
No comments:
Post a Comment