Advent of Code 2024 - Day 15 - Warehouse Woes

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • I try to solve Advent of code puzzles during the 2024 event. Please share your solutions and be a part of this great community.
    Repository:
    github.com/kal...
    Leverage AI in your software development workflow. Enhance your skills as a software developer, grow your career, and stay competitive in this fast-paced industry.
    imp.i384100.ne...
    DigitalOcean - Dream it. Build it. Grow it.
    digitalocean.p...
    Support the channel and donate a coffee:
    ko-fi.com/dani...
    Or visit my blog at:
    danielpersson.dev
    Outro music: Sanaas Scylla
    #java #adventofcode #2024

ความคิดเห็น • 1

  • @aaronperl
    @aaronperl หลายเดือนก่อน +1

    After I implemented the code for Part A, I ran it and got ... the wrong value. I added a printMap() function to print out the final map, and it matched exactly the final map in the description. Which meant that my score calculation had to be incorrect, somehow. I stared and stared, and stepped through the code, could not figure out how it could possibly be wrong. Then I checked the description again, and discovered that I had copied the expected result incorrectly from the description. So my code actually did work correctly on the first try.
    For Part B I was pleased with my function to inflate the map, but I ran out of steam while trying to figure out the movement algorithms.