<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="197042" data-post-id="197042">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="bossek" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/bossek/120/25995_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  bossek
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My solution of part 2 is to calculate result backwards, memoization is then “for free”:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">data = "data/10" |&gt; File.read!() |&gt; String.split() |&gt; Enum.map(&amp;String.to_integer/1)
data = Enum.sort([0 | data], :desc)

IO.puts(
  Enum.reduce(data, %{(hd(data) + 3) =&gt; 1}, fn i, memo -&gt;
    Map.put(memo, i, Enum.sum(Enum.map(1..3, &amp;Map.get(memo, i + &amp;1, 0))))
  end)[0]
)
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197042" data-batch-url="/posts/batch_likers">
                        5
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-197042" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197042"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="197044" data-post-id="197044">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kwando" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/120/4092_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kwando
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Today was a bit more tricky, I like when the naive approach just fails <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p>This is problem you can solve with <em>dynamic programming</em>, but I do not remember how that works so I went for a memoization/cache approach instead. No polish today, first version that worked below.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Aoc2020.Day10 do
  def part1(numbers) do
    numbers = Enum.sort(numbers, :desc)
    numbers = [hd(numbers) + 3 | numbers]

    diffs =
      numbers
      |&gt; differences()
      |&gt; Enum.frequencies()

    diffs[1] * diffs[3]
  end

  def part2(numbers) do
    numbers = Enum.sort([0 | Enum.to_list(numbers)], :desc)
    computer_joltage = hd(numbers) + 3
    sequence = [computer_joltage | numbers]

    graph = build_graph(sequence)
    rev_seq = Enum.reverse(sequence)

    for number &lt;- rev_seq, reduce: %{} do
      cache -&gt; Map.put(cache, number, count_paths(graph, number, 0, 0, cache))
    end
    |&gt; Map.get(computer_joltage)
  end

  def differences([a]), do: [a]
  def differences([a | [b | _] = rest]), do: [a - b | differences(rest)]

  def build_graph(adapters) do
    for adapter &lt;- adapters, reduce: {%{}, adapters} do
      {allowed, [_ | adapters]} -&gt;
        {Map.put(
           allowed,
           adapter,
           Enum.take_while(adapters, fn joltage -&gt; joltage &gt;= adapter - 3 end)
         ), adapters}
    end
    |&gt; elem(0)
  end

  def count_paths(_, to, to, sum, _), do: sum + 1
  def count_paths(graph, from, to, sum, cache) do
    for node &lt;- graph[from], reduce: sum do
      sum -&gt;
        case Map.fetch(cache, node) do
          {:ok, value} -&gt; sum + value
          :error -&gt; count_paths(graph, node, to, sum, cache)
        end
    end
  end

  def input_stream(path) do
    File.stream!(path)
    |&gt; Stream.map(&amp;parse/1)
  end

  def parse(line) do
    line
    |&gt; String.trim()
    |&gt; String.to_integer()
  end
end

input = Aoc2020.Day10.input_stream("input.txt")

Aoc2020.Day10.part1(input)
|&gt; IO.inspect(label: "part1")

Aoc2020.Day10.part2(input)
|&gt; IO.inspect(label: "part2")
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197044" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-197044" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197044"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="197047" data-post-id="197047">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kwando" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/120/4092_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kwando
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>yeah, that is a bit cryptic <img src="https://forum.elixirforum.com/images/emoji/apple/sweat_smile.png?v=15" title=":sweat_smile:" class="emoji" alt=":sweat_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197047" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-197047" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197047"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="197054" data-post-id="197054">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="jkmrto" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/jkmrto/120/14042_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  jkmrto
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hey, although I don’t normally post my solution, I just read some of them to learn from you, I found my solution to the task2 quite interesting. Similar to wah <a class="mention" href="/u/adamu" rel="nofollow">@adamu</a> said, at the end, all that was needed to take into account was that the number of combination of a value will be the sum of the combinations of the values that point to it:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def task2(file) do
    voltages = load_voltages(file)

    run(%{0 =&gt; 1}, voltages)
    |&gt; Map.get(List.last(voltages))
  end

  def run(comb_registry, [evaluated | others]) do
    comb_registry
    |&gt; check_available_value(evaluated, 1, others)
    |&gt; check_available_value(evaluated, 2, others)
    |&gt; check_available_value(evaluated, 3, others)
    |&gt; run(others)
  end

  def run(comb_registry, []), do: comb_registry

  def check_available_value(comb_registry, current_value, to_add, next_values) do
    comb_current_value = Map.fetch!(comb_registry, current_value)

    cond do
      (current_value + to_add) in next_values -&gt;
        Map.update(
          comb_registry,
          current_value + to_add,
          comb_current_value,
          &amp;(&amp;1 + comb_current_value)
        )

      true -&gt;
        comb_registry
    end
  end

</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197054" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-197054" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197054"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="197060" data-post-id="197060">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Rainer" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Rainer/120/15469_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Rainer
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks, I stole this idea and implemented it with Erlang <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197060" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-197060" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197060"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="197066" data-post-id="197066">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Damirados" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Damirados/120/36402_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Damirados
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is optimal solution (It would be if I wasn’t adding to the end of list). Credit goes to reddit thread. I’ll repo link providing my clunky solution that got me star.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def part2_optimal(path) do
    input_stream(path)
    |&gt; Enum.sort()
    |&gt; Enum.reduce({[0], [1]}, fn
      element, {interval, accumulators} -&gt;
        relevant_interval = Enum.filter(interval, &amp;(&amp;1 + 3 &gt;= element))
        relevant_accs = Enum.take(accumulators, -length(relevant_interval))

        new_acc =
          (length(relevant_accs) &gt; 1 &amp;&amp; Enum.sum(relevant_accs)) || List.last(relevant_accs)

        {relevant_interval ++ [element], relevant_accs ++ [new_acc]}
    end)
    |&gt; elem(1)
    |&gt; List.last()
  end
</code></pre>
<p><a href="https://github.com/Damirados/AoC/blob/master/lib/event10.ex" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/Damirados/AoC/blob/master/lib/event10.ex</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197066" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-197066" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197066"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="197076" data-post-id="197076">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Hallski" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Hallski/120/7398_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Hallski
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Struggled a bit with part two today but ended up with a similar solution to <a class="mention" href="/u/bossek" rel="nofollow">@bossek</a> (albite a bit less elegant) and iterating through the reversed list, building up the memoized values along the way.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def variations([], [{_, v} | _]), do: v

  def variations([head | tail], collector) do
    value =
      collector
      |&gt; Enum.filter(fn {v, _} -&gt; v - head &lt;= 3 end)
      |&gt; Enum.reduce(0, fn {_, branches}, acc -&gt; acc + branches end)

    variations(tail, [{head, value} | collector])
  end
</code></pre>
<aside class="onebox githubgist" data-onebox-src="https://gist.github.com/hallski/69f77d1d416f16f048149c89324e275a">
  <header class="source">

      <a href="https://gist.github.com/hallski/69f77d1d416f16f048149c89324e275a" target="_blank" rel="noopener nofollow ugc">gist.github.com</a>
  </header>

  <article class="onebox-body">
    <h4><a href="https://gist.github.com/hallski/69f77d1d416f16f048149c89324e275a" target="_blank" rel="noopener nofollow ugc">https://gist.github.com/hallski/69f77d1d416f16f048149c89324e275a</a></h4>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197076" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-197076" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197076"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="197083" data-post-id="197083">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="stevensonmt" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stevensonmt/120/20503_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  stevensonmt
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can you explain how you knew that tribonacci sequence would provide the number of permutations for each block?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197083" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-197083" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197083"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="197084" data-post-id="197084">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="adamu" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/adamu/120/31482_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  adamu
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m trying to compare my answer with yours, but I’m getting an error when running your code against my input.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">** (KeyError) key 2 not found in: %{0 =&gt; 1}
    :erlang.map_get(2, %{0 =&gt; 1})
    (bench 0.1.0) lib/bench.ex:54: Jkmrto.check_available_value/4
</code></pre>
<p>Here’s my <a href="https://github.com/adamu/AdventOfCode2020/blob/main/day10/input" rel="noopener nofollow ugc">input</a>.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197084" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-197084" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197084"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="197085" data-post-id="197085">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="adamu" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/adamu/120/31482_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  adamu
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>That is pretty elegant, kind of wish I’d thought of going backwards. I don’t think the direction is relevant for whether memoization is free or not though. We both just store the accumulated values in a map, and I go forwards. Anyway, the other solutions are faster <img src="https://forum.elixirforum.com/images/emoji/apple/smiling_face_with_sunglasses.png?v=15" title=":smiling_face_with_sunglasses:" class="emoji" alt=":smiling_face_with_sunglasses:" loading="lazy" width="20" height="20">. And <a class="mention" href="/u/camilleryr" rel="nofollow">@camilleryr</a>’s is faster than <a class="mention" href="/u/damirados" rel="nofollow">@Damirados</a>’ Reddit “optimal” solution, although I don’t pretend to understand it! Very clever.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Name                 ips        average  deviation         median         99th %
camilleryr      105.88 K        9.44 μs    ±75.62%           9 μs          30 μs
reddit           32.58 K       30.69 μs    ±34.14%          28 μs          81 μs
adam             25.09 K       39.86 μs    ±24.96%          37 μs          91 μs
hallski          19.81 K       50.49 μs    ±27.17%          48 μs         126 μs
bossek           19.45 K       51.42 μs    ±27.12%          48 μs         121 μs
kwando           16.00 K       62.51 μs    ±30.45%          58 μs         158 μs

Comparison:
camilleryr      105.88 K
reddit           32.58 K - 3.25x slower +21.25 μs
adam             25.09 K - 4.22x slower +30.41 μs
hallski          19.81 K - 5.35x slower +41.05 μs
bossek           19.45 K - 5.44x slower +41.98 μs
kwando           16.00 K - 6.62x slower +53.07 μs
</code></pre>
<p>It would be interesting to see how the <code>Agent</code> answers do, but I’ve looked at this problem for long enough already!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197085" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/advent-of-code-2020-day-10/36119/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-197085" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197085"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/36119/load_more?page=3">Load more posts (12 remaining)</a>
</div></template></turbo-stream>