View difference between Paste ID: nH5fFVfx and J36G1CCe
SHOW: | | - or go back to the newest paste.
1-
from sys import maxint as MAX_INT
1+
def f5(lst, _lstm=sys.maxint): # martineau min-tracker version
2-
2+
3-
def f5(lst, _lstm=MAX_INT): # martineau min-tracker version
3+
4
        v=item[1]
5
        if v:
6
            d.setdefault(v,{})[item]=0
7
            if v < _lstm:
8
                _lstm=v
9
    return d[_lstm].keys()