Skip to content

Commit a1ebf64

Browse files
committed
2022/06 comments
1 parent 780a66b commit a1ebf64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2022/Day06/Solution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Solution : Solver {
1010
public object PartTwo(string input) => StartOfBlock(input, 14);
1111

1212
// Slides a window of length l over the input and finds the first position
13-
// where each character is different. Returns the right of the window.
13+
// where each character is different. Returns the right end of the window.
1414
int StartOfBlock(string input, int l) =>
1515
Enumerable.Range(l, input.Length)
1616
.First(i => input.Substring(i - l, l).ToHashSet().Count == l);

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