Skip to content

Instantly share code, notes, and snippets.

@codertcet111
Last active July 12, 2020 13:37
Show Gist options
  • Save codertcet111/e8060b273996278a246441d4e247a1f3 to your computer and use it in GitHub Desktop.
Save codertcet111/e8060b273996278a246441d4e247a1f3 to your computer and use it in GitHub Desktop.
Function get_min_and_max (Array a[]){
max, min = a[0]
for i in a {
if a[i] > max then
max = a[i]
if a[i] < min then
min = a[i]
}
return min, max
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment