Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
heapq solution in Creative category for Min and Max by Sim0000
def min(*args, key=lambda x: x):
return __import__('heapq').nsmallest(1, args[0] if len(args) == 1 else args, key=key)[0]
def max(*args, key=lambda x: x):
return __import__('heapq').nlargest(1, args[0] if len(args) == 1 else args, key=key)[0]
May 8, 2014
Comments: