There is a list L. It contains elements of arbitrary type each. How to delete all duplicate elements in such list efficiently? ORDE
for simplicity indices for items may be stored in something like std::map
looks like O(n*log n) if I haven't missed anything