TreeMap 中 get() 和 put() 的时间复杂度是多少?
实现是否与红黑树相同?
最佳答案
来自这里:http://java.sun.com/javase/6/docs/api/java/util/TreeMap.html
This implementation provides guaranteed log(n) time cost for the containsKey, get, put and remove operations
关于java - TreeMap - 搜索时间复杂度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2864204/