Marc's Cakewalk

  • + 0 comments
    def marcsCakewalk(calorie):
        return sum(2**i x for i, x in enumerate(sorted(calorie, reverse=True)))