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 d0c8e33 commit 95ad192Copy full SHA for 95ad192
2025/1/index.html
@@ -295,6 +295,7 @@ <h2 id="problem-name">Secret Entrance</h2>
295
</div>
296
<div id="code-container"><pre class="hljs language-csharp"><code>namespace AdventOfCode.Y2025.Day01;
297
298
+using System;
299
using System.Collections.Generic;
300
using System.Linq;
301
@@ -307,7 +308,7 @@ <h2 id="problem-name">Secret Entrance</h2>
307
308
IEnumerable<int> Dial(IEnumerable<int> rotations) {
309
int pos = 50;
310
foreach (var rotation in rotations) {
- pos = (pos + rotation + 100) % 100;
311
+ pos = (pos + rotation) % 100;
312
yield return pos;
313
}
314
0 commit comments