5 ms·
> Sorting (other than to print a sorted list) doesn't pay for itself till you do a number of searches Or until you absolutely need to iterate thru a collection
by GFK_of_xmaspast 11y ago
> Sorting (other than to print a sorted list) doesn't pay for itself till you do a number of searches
Or until you absolutely need to iterate thru a collection in sorted order.
If you need a priority queue, use a priority queue, if you need a sorted container, use a sorted container.