# Advent of Code 2024 - Day 23

**URL:** <https://erlangforums.com/t/advent-of-code-2024-day-23/4322>\
**Category:** Coding Challenges\
**Tags:** advent-of-code\
**Created:** [December 23, 2024, 8:44am UTC](https://erlangforums.com/t/advent-of-code-2024-day-23/4322 "2024-12-23T08:44:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkatsuba](https://erlangforums.com/user_avatar/erlangforums.com/vkatsuba/32/314_2.png) [@vkatsuba](https://erlangforums.com/u/vkatsuba)\
**Post date:** [December 23, 2024, 8:44am UTC](https://erlangforums.com/t/advent-of-code-2024-day-23/4322/1 "2024-12-23T08:44:26Z")

</div>

Hey, Erlang networkers! 🚀 **[Today’s challenge](https://adventofcode.com/2024/day/23)** takes us to the heart of a LAN party at Easter Bunny HQ. We’re diving into network graphs to locate clusters of computers - and maybe even the elusive Chief Historian. 👨‍💻

### The Puzzle

Our task is to parse a network map of computer connections and identify sets of three inter-connected computers (triads). To narrow it down, we need to focus on triads where at least one computer’s name starts with the letter **‘t’**. Time to flex our graph traversal skills!

### 💡 Tips for solving Day 23 in Erlang

- **Graph Representation** : Use `maps` or `dict` structures to represent the network graph for efficient lookups.
- **Finding Triads** :
  - Loop through each node and its neighbors.
  - Check for connections between neighbors to identify triads.

- **Filter by Names** : Use pattern matching or a simple string check to filter triads based on the **‘t’** condition.
- **Optimize** : Avoid redundant checks by maintaining visited states for nodes.

Share your approaches, challenges, and solutions below! Whether you’re looping through neighbors, experimenting with recursion, or leveraging concurrency for performance, let’s collaborate and learn together. 🧑‍💻💡

Good luck, and may your triads always connect! ✨
