Skip to content

Commit 7363421

Browse files
committed
Sort calorie sums from top down
1 parent 338b050 commit 7363421

File tree

1 file changed

+1
-0
lines changed
  • puzzles/solutions/2022/d01

1 file changed

+1
-0
lines changed

puzzles/solutions/2022/d01/p2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def get_answer(input_text: str):
88
inventories = p1.get_inventories(input_text)
99
sums = p1.get_calories_sums(inventories)
1010

11+
descending_calories = sorted(sums, reverse=True)
1112

1213

1314
if __name__ == "__main__":

0 commit comments

Comments
 (0)