order of key for an ordered set in java?

Revision en1, by rohit_1801, 2024-03-03 09:26:32

Hello Community, I wanted to have a function to find order of key for an ordered set in java. As far as I know there is no any predefined function to find the number of elements lesser than the given element in an ordered set(treeset) in java in log(n) time? Can some one share their implementation. Thanks !!

Tags java

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rohit_1801 2024-03-03 09:26:32 352 Initial revision (published)