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?
TreeSet in Java.
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?