Top "Treemap" questions

An implementation of a mapping (dictionary) using a tree.

How to remove and add elements to TreeMap while iterating?

I want to write code like this - for (Map.Entry<Long, Integer> e : map.entrySet()){ map.remove(…

java treemap
Python 2.6 TreeMap/SortedDictionary?

Is there a built-in sorted dictionary implementation in Python 2.6, or are hashtables the only kind? Clarifications: I'm asking about sorted …

python dictionary python-2.6 treemap sorteddictionary
Find element position in a Java TreeMap

I am working with a TreeMap of Strings TreeMap<String, String>, and using it to implement a Dictionay …

java dictionary iterator treemap sortedmap
Java TreeMap equivalent in C#?

Most places I've consulted say to use SortedList, but the problem is that the program I'm porting actually uses duplicate …

c# java treemap equivalent
TreeMap - Search Time Complexity

What is the time complexity of a get() and put() in a TreeMap? Is the implementation same as a Red-Black …

java search insert time-complexity treemap
Using keySet() method then changing the Set to a String Array? Java

So this should be really simple since I know it's possible (I just don't understand 'Set' very much). So basically …

java set treemap arrays
Java Map sort by value

I was looking for ways of sorting Map<String, Integer> by values. I found this post, which solved …

java sorting hashmap comparator treemap
Why is there not a concurrent TreeMap?

I have a few question related to java.util.concurrent package: Why in the java API there is the non-concurrent …

java concurrency treemap
how to encode this data to parent / children structure in JSON

I am working with d3.js to visualise families of animals (organisms) (up to 4000 at a time) as a tree …

javascript json d3.js hierarchy treemap
Explanation of Red-Black tree based implementation of TreeMap in JAVA

I was going through the source code of TreeMap in JAVA. As per JAVA doc: A Red-Black tree based NavigableMap …

java treemap red-black-tree