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
1.4m articles
1.4m replys
5 comments
57.0k users