We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48fc3bd commit 41b8862Copy full SHA for 41b8862
2022/Day03/Solution.cs
@@ -8,9 +8,10 @@ namespace AdventOfCode.Y2022.Day03;
8
class Solution : Solver {
9
10
public object PartOne(string input) =>
11
- // A line can be divided to two 'compartments' of equal length. We need
12
- // to find the common item (letter) in them, and convert it to a number
13
- // called 'priority'. Do this for each line and sum the priorities.
+ // A line can be divided into two 'compartments' of equal length. We
+ // need to find the common item (letter) in them, and convert it to a
+ // number called 'priority'. Do this for each line and sum the
14
+ // priorities.
15
// We use 'chunk' to split a line in half.
16
input.Split("\n")
17
.Select(line => line.Chunk(line.Length/2)) // 🥩
0 commit comments