File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace AdventOfCode.Y2025.Day01;
77[ ProblemName ( "Secret Entrance" ) ]
88class Solution : Solver {
99
10- public object PartOne ( string input ) => Dial ( Parse ( input ) ) . Count ( x => x == 0 ) ;
10+ public object PartOne ( string input ) => Dial ( Parse1 ( input ) ) . Count ( x => x == 0 ) ;
1111 public object PartTwo ( string input ) => Dial ( Parse2 ( input ) ) . Count ( x => x == 0 ) ;
1212
1313 IEnumerable < int > Dial ( IEnumerable < int > rotations ) {
@@ -18,7 +18,7 @@ IEnumerable<int> Dial(IEnumerable<int> rotations) {
1818 }
1919 }
2020
21- IEnumerable < int > Parse ( string input ) =>
21+ IEnumerable < int > Parse1 ( string input ) =>
2222 from line in input . Split ( "\n " )
2323 let d = line [ 0 ] == 'R' ? 1 : - 1
2424 let a = int . Parse ( line . Substring ( 1 ) )
@@ -30,4 +30,4 @@ from line in input.Split("\n")
3030 let a = int . Parse ( line . Substring ( 1 ) )
3131 from i in Enumerable . Range ( 0 , a )
3232 select d ;
33- }
33+ }
You can’t perform that action at this time.
0 commit comments