algorithms

Algorithms Handbook

View on GitHub

Minimum and maximum

Implementation

MINIMUM(A)
min = A[1]
for i = 2 to A.length
  if min > A[i]
    min = A[i]
return min