Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Min and Maxx solution in Clear category for Min and Max by Damian_Horna
def minP(arg1, arg2, key):
if ((key==None) and (arg1key(arg1) or key==None and arg2>arg1:
return arg2
return arg1
def max(*args, **keyargs):
key=keyargs.get("key", None)
if len(args)==1:
args=list(args[0])
result=args[0]
for x in range(1,len(args)):
result=maxP(result,args[x],key)
return result
Oct. 16, 2016