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 00b86d2 commit 81facddCopy full SHA for 81facdd
2019/23/README.md
@@ -1,8 +1,8 @@
1
# Answers
2
3
-| Part 1 | Part 2 |
4
-|--------|---------|
5
-| ` ` | ` ` |
+| Part 1 | Part 2 |
+|----------|---------|
+| `22659` | ` ` |
6
7
## --- Day 23: Category Six ---
8
2019/23/network.js
@@ -3,7 +3,9 @@ const { Computer } = require('./intcode-computer-optimized');
class Network {
constructor(program, nics_count = 50) {
this.original_program = [...program];
- this.packet_queue = Array(nics_count).fill([]);
+ this.packet_queue = Array(nics_count)
+ .fill()
+ .map((_) => []);
9
10
this.nics = Array(nics_count)
11
.fill()
@@ -53,7 +55,6 @@ class Network {
53
55
}
54
56
57
-
58
59
60
0 commit comments