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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>First time trying to do anything in elixir. I’m still learning in early stage and sometimes it twist my mind to be able to express what i want to do. I think i overcomplicated it a lot, but at least got the correct result <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Aoc2024.Day1 do
  def getresult do
    {:ok, contents} = File.read("input")

    # [ %{left: 40094, right: 37480}, %{left: 52117, right: 14510}, ... ]
    itemlist =
      contents
      |&gt; String.split("\n")
      |&gt; Enum.map(fn(line) -&gt; splitlist(line) end)

    # Sorted list with only left values
    left_items =
      itemlist
      |&gt; Enum.sort(fn(i1, i2) -&gt; order_items(i1, i2, :left) end)
      |&gt; Enum.map(fn(i) -&gt; i.left end)

    # same for the right values
    right_items =
      itemlist
      |&gt; Enum.sort(fn(i1, i2) -&gt; order_items(i1, i2, :right) end)
      |&gt; Enum.map(fn(i) -&gt; i.right end)

    # List of diff of each left and right value at the same list position
    difflist =
      Enum.zip(left_items, right_items)
      |&gt; Enum.map(fn{li, ri} -&gt; abs(li - ri) end)

    # sum the values via recursive add
    add_values(difflist, 0)
  end

  defp splitlist(line) do
    [left , right] = line |&gt; String.split(" ", trim: true)
    %{left: String.to_integer(left) , right: String.to_integer(right)}
  end

  defp order_items(i1, i2, side) do
    case side do
      :left -&gt;  i1.left &lt;= i2.left
      :right -&gt; i1.right &lt;= i2.right
    end
  end

  defp add_values([h | t], result) do
    h + add_values(t, result)
  end
  defp add_values([], result) do
    result
  end
end

IO.puts(Integer.to_string(Aoc2024.Day1.getresult))
</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="347975" 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-2024-day-1/67786/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-347975" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347975"
                     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="347976" data-post-id="347976">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yup, quite normal, just asked in case I missed something. Thanks.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="347976" 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-2024-day-1/67786/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-347976" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347976"
                     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="347978" data-post-id="347978">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a href="https://github.com/MikeRocke/advent-of-code-2024/blob/main/lib/day_1.exs" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/MikeRocke/advent-of-code-2024/blob/main/lib/day_1.exs</a></p>
<p>My crummy attempt today!<br>
As I progress, I suspect I will extract common functions out into a shared module, like absolute_difference.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="347978" 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-2024-day-1/67786/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-347978" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347978"
                     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="347980" data-post-id="347980">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Here’s mine - I did it in Livebook which was a real help, coming from a python/F#-ish world:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"># ── Setup ──

fname = "/Users/marksmith/Downloads/AOC24/Day01/input.txt"
  
lines = File.stream!(fname) 
  |&gt; Enum.map(&amp;String.split/1)

# ── Part 1 ──

{left, right} = lines
  |&gt; Enum.map(&amp;List.to_tuple/1)
  |&gt; Enum.map( fn {first,second} -&gt; {String.to_integer(first), String.to_integer(second)} end)
  |&gt; Enum.unzip()

left = Enum.sort(left)
right = Enum.sort(right)

first_answer = Enum.zip(left, right)
  |&gt; Enum.map(fn {l,r} -&gt; abs(l-r) end)
  |&gt; Enum.sum()

# ── Part 2 ──

right_freqs = Enum.frequencies(right)

defmodule Etc do 
  def match_val(x, rf) do
    {_, freq} = Enum.find(rf, {x, 0}, fn {a,_} -&gt; a == x end)
    freq
  end
end

second_answer = left 
  |&gt; Enum.map(fn x -&gt; {x, Etc.match_val(x, right_freqs)} end)
  |&gt; Enum.map(fn {x,y} -&gt; x * y end)
  |&gt; Enum.sum()
</code></pre>
<p>There’s probably a more compact way of doing the unzip/sort/rezip bit in Part1 but I wanted to be able to understand it when I looked back on it <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>For Part 2 I struggled to extract the second element of a tuple having just found it, so it ended up in a function that returned the second element. I wanted to write that as an anonymous function but struggled with the syntax so went with the defmodule/def approach.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="347980" 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-2024-day-1/67786/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-347980" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347980"
                     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="347982" data-post-id="347982">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Here’s mine. Much more coding lines than I’d like but I guess my work bleeds into everything. I like small functions and separation of concerns and doctests and typespecs. <img src="https://forum.elixirforum.com/images/emoji/apple/person_shrugging.png?v=15" title=":person_shrugging:" class="emoji" alt=":person_shrugging:" loading="lazy" width="20" height="20"></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Day01 do
  @type id :: non_neg_integer()
  @type pair :: {id(), id()}
  @type pairs :: [pair()]
  @type distance :: non_neg_integer()
  @type similarity :: non_neg_integer()

  @spec parse_line(String.t()) :: pair()
  def parse_line(line) do
    line
    |&gt; String.trim()
    |&gt; String.split(~r/\s+/)
    |&gt; Enum.map(fn text -&gt;
      {number, ""} = Integer.parse(text)
      number
    end)
    |&gt; List.to_tuple()
  end

  @spec parse_input(String.t()) :: [pair()]
  def parse_input(input) do
    input
    |&gt; String.split("\n")
    |&gt; Enum.reject(fn line -&gt; line == "" end)
    |&gt; Enum.map(&amp;parse_line/1)
  end

  @spec sum_of_distances(pairs()) :: distance()
  def sum_of_distances(input) do
    {left, right} = Enum.unzip(input)
    left = Enum.sort(left)
    right = Enum.sort(right)

    left
    |&gt; Enum.zip(right)
    |&gt; Enum.map(fn {a, b} -&gt; abs(a - b) end)
    |&gt; Enum.sum()
  end

  # @spec similarity_score(pairs()) :: similarity()
  def similarity_score(input) do
    {left, right} = Enum.unzip(input)
    frequencies = Enum.frequencies(right)

    left
    |&gt; Enum.map(fn n -&gt; n * Map.get(frequencies, n, 0) end)
    |&gt; Enum.sum()
  end

  @doc ~S"""
  iex&gt; Day01.part_1("3   4\n4   3\n2   5\n1   3\n3   9\n3   3\n")
  11
  """
  @spec part_1(String.t()) :: distance()
  def part_1(input \\ input()) do
    input |&gt; parse_input() |&gt; sum_of_distances()
  end

  @doc ~S"""
  iex&gt; Day01.part_2("3   4\n4   3\n2   5\n1   3\n3   9\n3   3\n")
  31

  iex&gt; Day01.part_2("3   4\n4   3\n2   3\n1   3\n3   9\n3   3\n")
  40
  """
  @spec part_2(String.t()) :: similarity()
  def part_2(input \\ input()) do
    input |&gt; parse_input() |&gt; similarity_score()
  end

  def input(), do: File.read!("input/day_01.txt")
end
</code></pre>
<p>Since I did not want to cheat I only checked the solutions of others <em>post factum</em> and interestingly enough mine is almost identical to <a class="mention" href="/u/bjorng" rel="nofollow">@bjorng</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="347982" 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-2024-day-1/67786/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-347982" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347982"
                     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="347984" data-post-id="347984">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>When parsing I made sure to re-use the match context:</p>
<pre data-code-wrap="sh"><code class="lang-sh">❯ ERL_COMPILER_OPTIONS=bin_opt_info mix compile --force
Compiling 1 file (.ex)
    warning: OPTIMIZED: match context reused
    │
 38 │     parse(rest, {[first_number | left], [second_number | right]})
    │     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ lib/aoc24.ex:38

Generated aoc_24 app
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Aoc24 do
  def day_1_1() do
    {left, right} = parse(File.read!("./input_day_1.txt"), {[], []})
    Enum.zip_reduce(Enum.sort(left), Enum.sort(right), 0, fn left, right, acc -&gt;
      abs(left - right) + acc
    end)
  end

  def day_1_2() do
    {left, right} = parse(File.read!("./input_day_1.txt"), {[], []})
    frequencies = Enum.frequencies(right)
    Enum.reduce(left, 0, fn number, score -&gt;
      number * Map.get(frequencies, number, 0) + score
    end)
  end

  @new_line "\n"
  @spaces "   "
  defp parse(&lt;&lt;&gt;&gt;, acc), do: acc
  defp parse(
         &lt;&lt;first::binary-size(5), @spaces, second::binary-size(5), @new_line, rest::binary&gt;&gt;,
         {left, right}
       ) do
    first_number = String.to_integer(first)
    second_number = String.to_integer(second)
    parse(rest, {[first_number | left], [second_number | right]})
  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="347984" 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-2024-day-1/67786/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-347984" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347984"
                     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="347985" data-post-id="347985">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Part 1:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">file
|&gt; file_to_parsed_lines(&amp;parse_line/1)
|&gt; Enum.zip_with(&amp;Enum.sort/1)
|&gt; Enum.zip_reduce(0, fn [a, b], acc -&gt; acc + abs(a - b) end)
</code></pre>
<p>Part 2:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">[left, right] =
  file
  |&gt; file_to_parsed_lines(&amp;parse_line/1)
  |&gt; Enum.zip_with(&amp;Enum.frequencies/1)

Enum.reduce(left, 0, fn {k, v}, sum -&gt; sum + k * v * Map.get(right, k, 0) end)
</code></pre>
<p>Boilerplate:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def file_to_parsed_lines(file, parse_fun) do
  file |&gt; File.read!() |&gt; String.trim() |&gt; String.split("\n") |&gt; Enum.map(parse_fun)
end

def parse_line(line), do: line |&gt; String.split() |&gt; Enum.map(&amp;String.to_integer/1)
</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="347985" 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-2024-day-1/67786/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-347985" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347985"
                     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="347993" data-post-id="347993">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Here is mine. Not sure how optimal it is, didn’t use frequencies. <img src="https://forum.elixirforum.com/images/emoji/apple/cowboy_hat_face.png?v=15" title=":cowboy_hat_face:" class="emoji" alt=":cowboy_hat_face:" loading="lazy" width="20" height="20"></p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Aoc2024.Solutions.Y24.Day01 do
  alias AoC.Input

  def parse(input, _part) do
    input
    |&gt; Input.stream!()
    |&gt; Enum.reduce({[], []}, fn line, acc -&gt;
      {acc1, acc2} = acc
      {num1, num2} = parse_line(line)
      {[num1 | acc1], [num2 | acc2]}
    end)
  end

  def part_one({list1, list2}) do
    Enum.sort(list1)
    |&gt; Stream.zip(Enum.sort(list2))
    |&gt; Enum.reduce(0, fn {num1, num2}, acc -&gt; abs(num1 - num2) + acc end)
  end

  def part_two({list1, list2}) do
    list2 = Enum.sort(list2)

    list1
    |&gt; Enum.sort()
    |&gt; Enum.reduce(0, fn num, acc -&gt; count_number(list2, num) * num + acc end)
  end

  defp parse_line(line) do
    line
    |&gt; String.trim()
    |&gt; String.split()
    |&gt; then(fn [num1, num2] -&gt;
      {num1, _} = Integer.parse(num1)
      {num2, _} = Integer.parse(num2)
      {num1, num2}
    end)
  end

  defp count_number(list, num) do
    Enum.reduce_while(list, 0, fn e, acc -&gt;
      cond do
        e &lt; num -&gt; {:cont, acc}
        e == num -&gt; {:cont, acc + 1}
        true -&gt; {:halt, acc}
      end
    end)
  end
end
</code></pre>
<p>Using <a href="https://hex.pm/packages/aoc" rel="nofollow">aoc</a> lib.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Using default year: 2024
Using default day: 1
Solution for 2024 day 1
part_one: 1580061 in 44.31ms
part_two: 23046913 in 32.65ms
</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="347993" 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-2024-day-1/67786/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-347993" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347993"
                     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="347994" data-post-id="347994">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I solved it shortly after lunch today, and after skipping last year, I had quite a fight getting back into my boilerplate framework.</p>
<p>Anyway it’s been a nice warmup exercise and I’m looking forward for the next exercises.</p>
<p><a href="https://gitlab.com/NobbZ/aoc_ex/-/blob/main/lib/y2024/d01.ex" class="onebox" target="_blank" rel="noopener nofollow">https://gitlab.com/NobbZ/aoc_ex/-/blob/main/lib/y2024/d01.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="347994" 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-2024-day-1/67786/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-347994" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347994"
                     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="347996" data-post-id="347996">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Nice easy start to the yearly tradition!</p>
<p><a href="https://github.com/jswanner/aoc/blob/main/2024/day-01.livemd" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/jswanner/aoc/blob/main/2024/day-01.livemd</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="347996" 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-2024-day-1/67786/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-347996" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="347996"
                     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/67786/load_more?page=3">Load more posts (25 remaining)</a>
</div></template></turbo-stream>