I need the top ten values in a set of results. I could either store all the results as they are calculated and then sort; or I could test each value as it is calculated. If is larger than the largest ten up to that point, I could discard the smallest.
Looking for suggestions on the best way.
Thanks.
Looking for suggestions on the best way.
Thanks.