TreeSet in Java.

Revision en1, by rr459595, 2018-06-22 10:58:07

Is there any way to get index of an element in TreeSet?

I want a data structure(sorted) which can handle deletions in O(1) and do search in O(logn) time.

Is there any inbuilt data structure in Java which supports the above operations?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rr459595 2018-06-22 15:33:02 42
en1 English rr459595 2018-06-22 10:58:07 256 Initial revision (published)