You are viewing a single comment's thread. Return to all comments →
Python 3
def marcsCakewalk(calorie): return sum([(2**i)*w for i,w in enumerate(sorted(calorie, reverse=True))])
Seems like cookies are disabled on this browser, please enable them to open this website
Marc's Cakewalk
You are viewing a single comment's thread. Return to all comments →
Python 3