Set

A collection of objects that does not allow duplicates unlike Arrays that do allow duplicate

insert(element):


  • remove(element):

  • contains(index):

  • allAll(set):

  • union(set):

  • removeAll(set):

  • intersection(set):

Ordered Sets

A set with defined orders, all pairs are greater than or lesser than other pairs

Contains all set operations with
findMin():


  • findMax():