Created
February 3, 2015 00:19
-
-
Save avegancafe/dc8eabd8a1604cb54ecb to your computer and use it in GitHub Desktop.
A python implementation for finding the minimum of a list.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def min(l): | |
| cur = float('-inf') | |
| for el in l: | |
| if el < cur: | |
| cur = el | |
| return cur |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment