For what kind of a problem would use a Tree Set and not a Tree Map
For what kind of a problem would use a Tree Map and not a Tree Set
If you want to display the list of values in an ascending order, then you have to use Tree Set. Tree Set contains the data as a list.
If you want to display values with respect to the key value, then you have to use Tree Map. The Tree Map contains the data in a key-value pair and display the data in an unordered way.