landreville

joined 1 year ago
[โ€“] [email protected] 1 points 8 months ago

Rust Solution

For Part One I used a depth-first search which took too long for part two. Part Two I created an adjacency list of the junction points while keeping track of the distance to the adjacent nodes at the same time. Then depth-first search through the adjacency list.

[โ€“] [email protected] 2 points 8 months ago

Rust Solution

Memories of Day 8. It took me too long to realize I forgot to remove the 1000 iteration limit for part two.

[โ€“] [email protected] 1 points 8 months ago

Rust solution

Multiplied the manhattan distance by the number of empty space lines crossed.

[โ€“] [email protected] 5 points 8 months ago (1 children)

Rust Solution

Used Shoelace Algorithm to get the interior area and then Pick's Theorem to get the number of interior points based on the area and the points along the boundary loop.

[โ€“] [email protected] 2 points 8 months ago* (last edited 8 months ago)

My solution in Rust.

Took me way too long to realize I could simply add jokers to the count of the most common card in the hand.