Skip to content

Commit c04e766

Browse files
committed
add a comment
1 parent ac5144e commit c04e766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/day24/solution.gleam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pub fn solve_p2(lines: List(String)) -> Result(String, String) {
5858
gates
5959
|> list.filter(fn(g) {
6060
// filter the gates for gates that do not match a half adder followed by
61-
// a bunch of full adders.
61+
// a bunch of full adders. This does not account for any swaps from the output
62+
// of an adder with the same component of another adder.
6263
case g {
6364
// Outputs should be from Xor gates, except the last one
6465
Or(_, _, "z45") -> False

0 commit comments

Comments
 (0)