Skip to content

Instantly share code, notes, and snippets.

@eirenik0
Last active August 29, 2015 13:57
Show Gist options
  • Save eirenik0/9920863 to your computer and use it in GitHub Desktop.
Save eirenik0/9920863 to your computer and use it in GitHub Desktop.
O(n^2) min search
l=[3,11,2,4,2,1,3,4,62,6,67,8,2,3,2246]
tmp = l[0]
for i in l:
for j in l:
if i<j and i<tmp:
tmp = i
print tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment