in reply to Re: minimum, maximum and average of a list of numbers at the same time
in thread minimum, maximum and average of a list of numbers at the same time

using sort is in general a very bad idea because it has O(NlogN) complexity while the other algorithms proposed are just O(N).

Though, for small lists it could be faster.

  • Comment on Re^2: minimum, maximum and average of a list of numbers at the same time