From 3b788f8939ee4394970ce45f1ad0d2d1d24d7e45 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 17 Dec 2015 11:28:29 -0500 Subject: [PATCH] Day 10, Part 2 --- advent-of-code.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/advent-of-code.org b/advent-of-code.org index 9fb57f5..1ee9458 100644 --- a/advent-of-code.org +++ b/advent-of-code.org @@ -4444,3 +4444,19 @@ times. What is *the length of the result*? #+RESULTS[a92ffee565329427383332212debc42eac7b4af2]: : 329356 +** Part 2 +Neat, right? You might also enjoy hearing [[https://www.youtube.com/watch?v=ea7lJkEhytA][John Conway talking about +this sequence]] (that's Conway of *Conway's Game of Life* fame). + +Now, starting again with the digits in your puzzle input, apply this +process *50* times. What is *the length of the new result*? + +---------------------------------------------------------------------- + +#+BEGIN_SRC emacs-lisp :var input=10-input :exports both + (length (day10/say-sequence-n 50 (string-trim input))) +#+END_SRC + +#+RESULTS[cc7bbc9c6f3abcff179e832a1ed20371b788b059]: +: 4666278 +