Skip to content

Commit e36f4fb

Browse files
committed
Adds part 2 answer
1 parent d496a75 commit e36f4fb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

2019/16/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Part 1 | Part 2 |
44
|------------|------------|
5-
| `27831665` | ` ` |
5+
| `27831665` | `36265589` |
66

77
## --- Day 16: Flawed Frequency Transmission ---
88

@@ -89,8 +89,8 @@ The _first seven digits_ of your initial input signal also represent the _messag
8989

9090
Here is the eight-digit message in the final output list after 100 phases. The message offset given in each input has been highlighted. (Note that the inputs given below are repeated 10000 times to find the actual starting input lists.)
9191

92-
* `_0303673_2577212944063491565474664` becomes `84462026`.
93-
* `_0293510_9699940807407585447034323` becomes `78725270`.
94-
* `_0308177_0884921959731165446850517` becomes `53553731`.
92+
* <code><b>0303673</b>2577212944063491565474664</code> becomes `84462026`.
93+
* <code><b>0293510</b>9699940807407585447034323</code> becomes `78725270`.
94+
* <code><b>0308177</b>0884921959731165446850517</code> becomes `53553731`.
9595

9696
After repeating your input signal 10000 times and running 100 phases of FFT, _what is the eight-digit message embedded in the final output list?_

2019/16/part-two.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ for (let j = 0; j < 100; j++) {
99
}
1010
}
1111

12-
console.log('8 digits:', slice_to_iterate.slice(0, 8).join(''));
12+
// First 8 digits from our offset
13+
console.log(slice_to_iterate.slice(0, 8).join(''));
1314

1415
/*
1516

0 commit comments

Comments
 (0)