Browse Source

remove answers from transcripts

it feels a little weird to publish them while the challenge is going on,
and it's also slowing down transcript rebuilds for some of the more
complex answers... Unison is not terribly fast yet.
master
Brian Hicks 2 years ago
parent
commit
bef8c4d998
  1. 2
      transcripts/day01.md
  2. 4
      transcripts/day01.output.md
  3. 4
      transcripts/day02.md
  4. 6
      transcripts/day02.output.md
  5. 2
      transcripts/day04.md
  6. 4
      transcripts/day04.output.md
  7. 4
      transcripts/day05.md
  8. 8
      transcripts/day05.output.md
  9. 4
      transcripts/day06.md
  10. 8
      transcripts/day06.output.md

2
transcripts/day01.md

@ -29,6 +29,4 @@ Nice! So assuming we've entered our data as `moduleMasses`, we can get the total
```ucm
.> view aoc.day1.answer
.> display aoc.day1.answer
```

4
transcripts/day01.output.md

@ -51,8 +51,4 @@ Nice! So assuming we've entered our data as `moduleMasses`, we can get the total
use Nat +
moduleMasses |> List.map fuelRequiredForMass |> foldl (+) 0
.> display aoc.day1.answer
5101025
```

4
transcripts/day02.md

@ -38,8 +38,6 @@ Let's patch and solve it!
```
.> view aoc.day2.answer
.> display aoc.day2.answer
```
(I broke this transcript somehow! Oops!)
@ -55,6 +53,4 @@ We're looking for what values given to `patchProgram` result in the output `1969
```ucm
.> view aoc.day2.answer2
.> display aoc.day2.answer2
```

6
transcripts/day02.output.md

@ -125,8 +125,6 @@ Let's patch and solve it!
```
.> view aoc.day2.answer
.> display aoc.day2.answer
```
(I broke this transcript somehow! Oops!)
@ -166,8 +164,4 @@ We're looking for what values given to `patchProgram` result in the output `1969
== 19690720 then [pair]
else []))
.> display aoc.day2.answer2
[(86, 9)]
```

2
transcripts/day04.md

@ -26,6 +26,4 @@ And that lets us calculate the answer like this:
```ucm
.aoc.day4> view answer
.aoc.day4> display answer
```

4
transcripts/day04.output.md

@ -61,8 +61,4 @@ And that lets us calculate the answer like this:
(range 109165 576723)
|> List.size
.aoc.day4> display answer
1991
```

4
transcripts/day05.md

@ -63,9 +63,5 @@ and we can get our two answers like this:
```ucm
.aoc.day5> view answer1
.aoc.day5> display answer1
.aoc.day5> view answer2
.aoc.day5> display answer2
```

8
transcripts/day05.output.md

@ -242,18 +242,10 @@ and we can get our two answers like this:
answer1 =
runProgram (ProgramState program [+1] [] None) |> output
.aoc.day5> display answer1
[+0, +0, +0, +0, +0, +0, +0, +0, +0, +7988899]
.aoc.day5> view answer2
answer2 : [Int]
answer2 =
runProgram (ProgramState program [+5] [] None) |> output
.aoc.day5> display answer2
[+13758663]
```

4
transcripts/day06.md

@ -17,8 +17,6 @@ Since it's acyclic, we don't need any special checks.
.aoc.day6> view directAndIndirectOrbits
.aoc.day6> view answer1
.aoc.day6> display answer1
```
The next challenge is to figure out how to transfer from one orbit to another.
@ -49,6 +47,4 @@ So then the answer looks like this:
```ucm
.aoc.day6> view answer2
.aoc.day6> display answer2
```

8
transcripts/day06.output.md

@ -52,10 +52,6 @@ Since it's acyclic, we don't need any special checks.
|> List.map (key -> directAndIndirectOrbits key orbitMap)
|> foldl (+) 0
.aoc.day6> display answer1
314247
```
The next challenge is to figure out how to transfer from one orbit to another.
This is a little harder with our structure but again not too bad since the graph is acyclic/single-parent.
@ -123,8 +119,4 @@ So then the answer looks like this:
answer2 : Nat
answer2 = transfersBetween "YOU" "SAN" orbitMap
.aoc.day6> display answer2
514
```
Loading…
Cancel
Save