Skip to content

Commit 41b8862

Browse files
committed
2022/03 comments
1 parent 48fc3bd commit 41b8862

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

2022/Day03/Solution.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ namespace AdventOfCode.Y2022.Day03;
88
class Solution : Solver {
99

1010
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.
11+
// A line can be divided into two 'compartments' of equal length. We
12+
// need to find the common item (letter) in them, and convert it to a
13+
// number called 'priority'. Do this for each line and sum the
14+
// priorities.
1415
// We use 'chunk' to split a line in half.
1516
input.Split("\n")
1617
.Select(line => line.Chunk(line.Length/2)) // 🥩

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy