Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Min and Max by LMAO
def min(*args, **kwargs):
key = kwargs.get("key")
if len(args) == 1:
args = args[0]
return sorted(args, key=key)[0]
def max(*args, **kwargs):
key = kwargs.get("key")
if len(args) == 1:
args = args[0]
return sorted(args, key=key, reverse=True)[0]
Feb. 22, 2015
Comments: