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 1249f84 commit e3ef504Copy full SHA for e3ef504
blog/src/content/solutions/2025/01/README.md
@@ -142,7 +142,11 @@ do that when the left-hand side is considered false.
142
Once we calculate this number and rotate the dial, we can do the logic for both
143
Parts 1 and 2 at the same time! We can add 1 to a tally of `hits` if 0 is
144
reached exactly, and we can use our formula from before to increase a tally of
145
-`passes`.
+`passes`.[^unnecessary-check]
146
+
147
+[^unnecessary-check]: It turns out that checking `clicks >= clicks_to_next_zero`
148
+is unnecessary; if the condition is untrue (i.e. no passes occur), the formula
149
+will indeed evaluate to 0.
150
151
```py title="2025\day01\solution.py" ins={9-14,16}
152
...
0 commit comments