File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ <h2 id="problem-name">Secret Entrance</h2>
302302[ProblemName("Secret Entrance")]
303303class Solution : Solver {
304304
305- public object PartOne(string input) => Dial(Parse (input)).Count(x => x == 0);
305+ public object PartOne(string input) => Dial(Parse1 (input)).Count(x => x == 0);
306306 public object PartTwo(string input) => Dial(Parse2(input)).Count(x => x == 0);
307307
308308 IEnumerable<int> Dial(IEnumerable<int> rotations) {
@@ -313,7 +313,7 @@ <h2 id="problem-name">Secret Entrance</h2>
313313 }
314314 }
315315
316- IEnumerable<int> Parse (string input) =>
316+ IEnumerable<int> Parse1 (string input) =>
317317 from line in input.Split("\n")
318318 let d = line[0] == 'R' ? 1 : -1
319319 let a = int.Parse(line.Substring(1))
@@ -325,7 +325,8 @@ <h2 id="problem-name">Secret Entrance</h2>
325325 let a = int.Parse(line.Substring(1))
326326 from i in Enumerable.Range(0, a)
327327 select d;
328- }</ code > </ pre > </ div >
328+ }
329+ </ code > </ pre > </ div >
329330 < div id ="code-location "> < p > Please ☆ my < a href ="https://github.com/encse/adventofcode/ "> repo</ a > if you like it!</ p > </ div >
330331 </ div >
331332
You can’t perform that action at this time.
0 commit comments