I can't understand why TreeMap is called TreeMap but not SortedMap. As I understand TreeMap is a map that auto sorts its elements. Tree in computer science is like a graph. So why?
Because TreeMap is implemented by Red–black tree
2.1m questions
2.1m answers
60 comments
57.0k users