Someone did use that periodic pattern to cut down on the search space.
I got so lucky that “no overlapping” worked for mine. It was a very undefined problem.
Was a bit disappointing that they didn’t complete all 50 stars, which made them a bit of a poor control.
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 :)
Its normal for main to return a value, its just usually a status thing, rather than actual data. But given python doesn’t really treat main as anything special, it hardly matters
Thats all I need to succeed as well!
Bit odd having main()
returning an actual value, probably would have named it something else, otherwise, nicely documented solution.
I bet VSC is a lot nicer to work in than notepad :D
Yeah, its extremely unfortunate. It was so close to being a success story :(
And make your chisel blunt and chipped? You monster
Do you have a source for that number?
Raw aluminum was 1600USD per ton in 2016. (EUR was about 85-90%, so similar value).
Unless it was being subsidised by the government, that doesn’t make any economic sense?
https://www.statista.com/statistics/675845/average-prices-aluminum-worldwide/
Bad week for aviation.
Looked like a perfectly survivable gear-up landing, if it weren’t for the wall at the end of the runway :(
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.
:(
Remove the HDMI port with pliers :D
Well, the choice of casket should be obvious.
Season one JD isnt everyone’s cup of tea either, my partner doesn’t like him. He grew on her though, which season 9 never got a chance to do.
Even when not logged it, yt builds a profile of what you watch. I’m not logged in on my work browser, but it still knows what I watch frequently. So this ones on you…
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.
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