Skip to content

Commit c7cf630

Browse files
committed
x
1 parent 91bfb2c commit c7cf630

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

2024/Day24/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## --- Day 24: Crossed Wires ---
2-
You and The Historians arrive at the edge of a [large grove](/2022/day/23) somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it's been malfunctioning recently.
2+
You and The Historians arrive at the edge of a _large grove_ somewhere in the jungle. After the last incident, the Elves installed a small device that monitors the fruit. While The Historians search the grove, one of them asks if you can take a look at the monitoring device; apparently, it's been malfunctioning recently.
33

44
The device seems to be trying to produce a number through some boolean logic gates. Each gate has two inputs and one output. The gates all operate on values that are either <em>true</em> (<code>1</code>) or <em>false</em> (<code>0</code>).
55

@@ -17,5 +17,5 @@ Which are chained one after the other like this:
1717

1818
I took the images from [build-electronic-circuits.com](https://www.build-electronic-circuits.com/full-adder/).
1919

20-
I implemented this logic in my 'fix' method. I start with the output x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different
20+
I implemented this logic in my 'fix' method. I start with the inputs x01 and y01 and try to identify the gates for the individual steps. Where I found an error, I manually checked my input to figure out what went wrong. I had just two different
2121
kind of errors which can be corrected by the fixer.

docs/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const marked = require('marked');
55

66
function media(dir){
77
const files = fs.readdirSync(dir);
8-
return files.filter(file => path.extname(file).toLowerCase() === '.gif' || path.extname(file).toLowerCase() === '.png' ).map(file => path.join(dir, file));
8+
return files.filter(file =>
9+
path.extname(file).toLowerCase() === '.gif' ||
10+
path.extname(file).toLowerCase() === '.png'
11+
).map(file => path.join(dir, file));
912
}
1013

1114
function* findReadmes(dir) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy