previous | start | next

Self Check

  1. When would you choose a tree set over a hash set?
  2. Suppose we define a coin comparator whose compare method always returns 0. Would the TreeSet function correctly?

previous | start | next