Skip to content

Commit edafb94

Browse files
authored
Update Solution.cs
2022/01 comment
1 parent 386fa49 commit edafb94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

2022/Day01/Solution.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public object PartOne(string input) =>
1212
public object PartTwo(string input) =>
1313
GetCaloriesPerElf(input).Take(3).Sum();
1414

15+
// Returns the calories carried by the elves in descending
16+
// order.
1517
private IEnumerable<int> GetCaloriesPerElf(string input) =>
1618
from elf in input.Split("\n\n")
1719
let calories = elf.Split('\n').Select(int.Parse).Sum()

0 commit comments

Comments
 (0)