JP's Blog

  • GitHub * Flickr * Resume
  • Programming
  • Reviews
  • Home Automation
  • Photography
  • Maker
  • Writing
  • Research
  • Search
  • RSS

AoC 2024 Day 12: Edginator

2024-12-12

Source: Day 12: Garden Groups

Full solution for today (spoilers!).

  • Source: Day 12: Garden Groups
  • Part 1
  • Part 2
    • Optimization 1: Detect corners instead of edges
  • Benchmarks

Part 1

Given a Grid of regions, calculate the sum of the product perimeter * area for each region.

read more...

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming/topics

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license