Algorithms
Algorithms copied to clipboard
Add java implementation of the ordered set data structure available in C++
Ordered set is a policy based data structure in g++ that keeps the unique elements in sorted order. It performs all the operations as performed by the set data structure in STL in log(n) complexity and performs two additional operations also in log(n) complexity .
order_of_key (k) : Number of items strictly smaller than k . find_by_order(k) : K-th element in a set (counting from zero).
Can't this be achieved with TreeSet instead?