• 43 Posts
  • 1.56K Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle
  • Still reading, but this bit is a bit dopey:

    if calculate(answer, numbers) == true {
    		return true;
    	    } else {
    		return false;
    	    }
    

    I think your problem is you are passing around a reference to the 1 array, and the mutation of the array isnt reversed when you back out.

    So the array given to the multiply step and the add step end up different. Log them out and it should be clear







  • I saw it :)

    If I understand your approach for pt2, you are getting all the fences and then grouping the connected ones? That definitely seems like a harder approach. I went with the counting corner method, which was also hard, but less iterating required.

    Keep the solutions coming, even as the sub wanes in activity, I still appreciate them :)









  • They are technically recyclable, but in reality, most of them go straight to landfill where they dont break down.

    In Aus, we have the capability to recycle them, but even the ones that are “recycled” end up stored in warehouses until they catch fire, or shipped to China and incinerated there.

    Actual recycling is so limited in capacity that production of the waste way outstrips the recycling.

    :(






  • CameronDevOPMtoAdvent Of CodePreliminary Leaderboard
    link
    fedilink
    arrow-up
    3
    ·
    5 days ago

    I dont care for the global leaderboard, its mostly LLMs and competitive programmers, who are way too fast. “Competing” against everyone here is much less stressful and more enjoyable.

    This was my first finish as well,last year I bailed after day 12.


  • My favourites were the ones where memoization just made them instantly fast.

    Day 11 was interesting, in that the logical (imo) data structure for part1 was completely incompatible with part 2.

    I really liked the ones that had multiple valid approaches. Some of the challenges were solved basically the same way by everyone, which was a bit uninteresting.