def minimizeMaximumPair(lst):
lst.sort()
def compute(aList):
if len(aList) != 0:
return [(aList[0], lst[len(aList) - 1])].extend(compute(aList[1:len(aList) - 1]))
return []
return compute(lst)
When I get the the last recursion step I get an
TypeError: 'NoneType' object is not iterable
I tried returning nothing, and a []