Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 135 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 135 Bytes

Minimum and maximum

Implementation

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