#advent-of-code

1 messages Β· Page 27 of 1

earnest forge
#

Good luck everyone

woven oriole
#

glhf

shut trellisBOT
long egret
#

i dont even understand the problem

#

πŸ—Ώ

compact wasp
#

bruh @devout tusk you beat me in pt1

#

i've officially fallen off

#

15/16

buoyant hatch
#

is aoc python only

devout tusk
compact wasp
#

rip

#

if i didn't go to the bathroom yesterday i'd be first πŸ—Ώ

#

no regrets though

obsidian anvil
compact wasp
#

πŸ˜‚

pine tiger
#

HAHAHAHA

compact wasp
#

πŸ”₯

#

bruh this mf seriously tied with me

woven oriole
#

okay there is somethign stupid going on

#

testcase fails wow

wanton plover
#

This one tricked me smh

devout tusk
#

13/338.
FML

woven oriole
#

what the sigma

#

why does it work on given case but not tc theres no room for edge cases?? smh

pine tiger
compact wasp
pine tiger
#

oops

devout tusk
devout tusk
pine tiger
#

icic

#

not on pydis?

devout tusk
pine tiger
#

the lb here

compact wasp
#

how many ppl here are on global

pine tiger
#

adavya, you, tesseract, oliver

devout tusk
pine tiger
#

naruhodo

devout tusk
#

just to annoy people

compact wasp
devout tusk
compact wasp
#

and we'll need adavya or oliver to get #3

devout tusk
compact wasp
#

dw you have like 2 weeks to get there

devout tusk
compact wasp
#

need full pydis podium

devout tusk
compact wasp
#

no i meant need top 3 on global to be pydis

compact wasp
woven scaffold
#

||are we supposed to handle file ids >= 10||

pine tiger
#

||yes, they move around just like single digit #s||

woven scaffold
#

||but you also have to take into account the length of the id right||

#

||so like id 10 will take up 2 indexes of space||

pine tiger
woven oriole
#

nvm nvm

#

ignore

#

the problem is somewhere else

woven scaffold
#

||did I read the problem statement wrong or something lol||

woven oriole
#

||i am getting wrong on my tc||

#

|| i just use two pointers for swap||

#

||smh||

woven scaffold
#

||so if I take the example input and add another file at the end, and make the first free block larger: 273313312141413140203, I get the string 00.......111...2...333.44.5555.6666.777.888899101010. So after the first swap should it be 00101010.111...2...333.44.5555.6666.777.888899......?||

compact wasp
#

||where are you getting 101010||

#

||should be AAA||

hollow wharf
#

why doesn't the problem specify how to handle >two-digit ids?

woven oriole
#

what the sigma

woven scaffold
#

||ah||

woven oriole
#

what is ||AAA||

woven scaffold
#

||ok time to rewrite lmao||

compact wasp
peak dock
#

gdi

#

i crashed vsc for 5 minutes because i forgot to remove a print in the loop before running it on the actual input

compact wasp
#

😭

#

ouch

woven oriole
#

ocntext

#

😭

compact wasp
peak dock
woven scaffold
#

whoops

woven oriole
compact wasp
#

i unfortunately don't feel like figuring out how to explain

woven scaffold
compact wasp
#

^

thin topaz
#

I had a stroke while doing part2 bro

woven oriole
#

WHERE IS THIS MENTIONED

#

WHER THE FUCK

woven oriole
#

okay fml

#

oh ok

#

got it

#

got it

normal umbra
#

The part 2 example has this at the end ||00992111777.44.333....5555.6666.....8888..|| this isnt the end result, is it? coz ||there are free spaces left like 4 spaces before 5555 so 8888 will be placed there right?||

thin topaz
#

||You tried to move 8888 right after 99 there is no spaces at the left for 8888 at that moment||

normal umbra
#

oh

#

so what I send will be considered the end result?

thin topaz
#

after you tried to move all the blocks

#

you would only try once

normal umbra
#

I see

#

okay thanks!

#

saved me a ton of time

thin topaz
#

could have got better ranks for part2 if I am not struggling so hard and refuse to just move the numbers around

wanton plover
slate berry
#

Can anyone help me with day 5 part 2? I wanted to optimise my sol...

cyan sleet
#

cute mascot

magic oxide
#

i just realized i've been trying to solve a harder problem

#

bruh

cyan sleet
#

I only see o

#

@magic oxide does gleam really not have a get_line?

magic oxide
cyan sleet
#

I saw that, but it makes me sad to have to reach into erlang πŸ₯΄

magic oxide
#

read the problem wrong and solved a harder one

cyan sleet
#

I guess it makes some sense since it can be compiled to js or whatever

feral hazel
slate berry
#

Im thinking || toposort|| but not sure

floral hare
hollow wharf
#

first day left unsolved py_strong

compact wasp
magic oxide
compact wasp
#

how would that even work

magic oxide
#

very slowly

#

i just ||kept iterating over each file and empty slot until there was nothing to be changed||

normal umbra
#

yikes

covert arrow
#

I skimmed today's part 1 and implemented part 2 instead

slate berry
#

like how it's working here

floral hare
naive wharf
#

god damn it

#

for this AoC, I'd do

for (from, len, id) in <censored>:
  ...

one of these is a keyword.
two shadow builtins.

#

WHY, Python?

peak dock
#

i wouldnt feel too bad about shadowing id tbh

naive wharf
limpid grail
#

How long does your Day 9 solution take to run

rapid wolf
#

it takes ||6s||

limpid grail
#

mine is taking quite some time

#

oh its done

#

||part_1 took 104.20s to run||

rapid wolf
limpid grail
#

and its wrong

rapid wolf
#

classic

hollow wharf
modern terrace
#

why spoil anyways-

hollow wharf
#

idk tbh

modern terrace
cyan sleet
tender swallow
cyan sleet
#

I think in python part 1 should be fairly trivial to do efficiently

tender swallow
#

part 1 was fairly fast even at first yeah
only slow thing was 2

cyan sleet
woven oriole
#

||did someone use bisect_left for p2 for optimization's sake||

#

||TIL insort_left exists , i couldnt make it work with bisect_left, although the ans is pretty close but still not correct , tuple comparator smh||

woven oriole
oak flax
#

fml, i finally did part2, worst code i have ever written probably, very ugly, but im not touching it again

cyan sleet
woven oriole
#

which one

#

haskell or wot

hybrid gull
unique osprey
#

That's nothin. My p2 takes 40 sec

hybrid gull
#

Gotta get your money's worth outta that CPU

unique osprey
#

Thank you to whoever showed import tqdm the other day. Otherwise i would have given up halfway through running and worked on optimization

shut otter
#

why is my re.findall returning an empty list? for day 3

distant igloo
shut otter
#

oh ok also i go the answer i was missing an escape sequence \

distant igloo
#

Remember that this channel should not have any spoilers or hints! People might not appreciate the information you're putting here

slender ravine
#

Tbf the question is fine but answer should be spoiler

#

||nvm, that's was the one that you should use regex without a doubt||

tender swallow
slender ravine
#

Oops

naive wharf
#

challenge: day 3 part 3 - allow muls to be nested

thorn inlet
dense gale
dense gale
long egret
#

i understand it now

dense gale
#

i havent even seen what the problem is yet

unique osprey
#

Start with day 1 if you haven't yet

dense gale
#

im tired for this tbh i need my last year motivation

mild hill
#

Guys, someone help because I am losing my mind

#

Isn't this what we are supposed to do in part two of day 9 ?

hybrid gull
mild hill
#

bruh

#

Thanks, makes sense, I didn't read it correctly

somber trench
#

For day 9 will I have to account for numbers more than two digits and if so do I have to keep them the same double digit

somber trench
hollow wharf
#

stays as 17, also avoid building the string, it will cause unnecessary bugs like this one

somber trench
shut trellisBOT
gilded osprey
#

bro shut up

#

unsubscribe me

gloomy osprey
compact wasp
#

31/29

#

gg

#

2 llmers ahead of me despair

gilded osprey
devout tusk
#

the question refused to open for me today! :/

pine tiger
#

there's a certain peace in knowing there's nothing you can do about it

devout tusk
#

24/45

compact wasp
compact wasp
#

at least everyone knows they're llming lol

magic oxide
#

at least you got a point

pine tiger
#

ffs hyper neutrino isn't on lb

devout tusk
compact wasp
compact wasp
devout tusk
#

#34*

#

my bad

compact wasp
#

also i love how #1 and #2 both bought aoc++ today

compact wasp
devout tusk
#

like sponsored it?

compact wasp
#

the yellow thing

devout tusk
devout tusk
magic oxide
#

i need to stop misreading the question

#

at least today it wasn't too bad

compact wasp
#

let's just say my interpretation is cynical

devout tusk
compact wasp
#

πŸ’€

magic oxide
#

i can't believe AoC is p2w smh

humble copper
#

i somehow solved part 2 before part 1

#

completely misread what it was asking for

#

πŸ’€

magic oxide
#

advent of reading comprehension strikes again

woven oriole
#

WHY DO I WAKE UP LATE ON EASY DAYS

#

also my ||soul died on omitting the visited set for p2 then i was like yeah its fine||

covert arrow
#

smh I accidentally did part 2 for part 1 again

woven oriole
#

i woke up 15 mins late

#

🀑

magic oxide
wind fractal
#

accidentally solve part 2 first LOL

woven oriole
#

what was the rank in solving p1 <= 6mins

#

i wanna feel regret

compact wasp
#

not top 100

#

lb filled in 2 mins

magic oxide
#

leaderboard filled up insanely fast

#

yeah

magic oxide
compact wasp
#

a little bit

#

i'm bad though

magic oxide
#

cool

#

small world

hybrid gull
#

Feels like this year there's a way higher number of people convinced there's an error in the puzzle text. I know it happens every year, but this year feels inordinately higher.

rancid creek
magic oxide
#

tbf today was pretty cut and dry

#

but yeah i agree

viscid elbow
lime fulcrum
thin topaz
#

part1 is harder than part2 smh

lime fulcrum
#

Today?

thin topaz
#

||I tried too long to not just bfs from each 9||

#

yes

long egret
#

i fixed my code for part 1, then realized and un-fixed my code for part 2 πŸ—Ώ

prisma fulcrum
#

!paste

marsh currentBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

compact wasp
rancid creek
# viscid elbow

I'm sure it has. I wonder if I can find the link for the guy that made a live version of it.

rancid creek
# viscid elbow

the 2024 numbers seem reasonable so far. I think we might have had another medium in there a few days ago. But overall 2024 hasn't been too bad so far.

magic oxide
#

i would've had yesterday as insane

#

i was kinda out of it yesterday

rancid creek
compact wasp
#

why didn't eric invalidate scores πŸ—Ώ

rancid creek
#

Does mean I've been much more relaxed about solving though. Which is nice.

rancid creek
compact wasp
#

was 2020 much worse

#

wasn't there so i wouldn't know

rancid creek
# compact wasp was 2020 much worse

It's hard to tell, times have been getting easier as more people started doing aoc as well. So it's not just that aoc looks easier over time, it's also that aoc coder quantity has improved over time.

ivory marsh
#

The future is grim, the graph day finally arrived ```
d p time abs rel
...
10 1 376ms 38% 41%
10 2 366ms 37% 40%
sum 922ms 92% 100%

compact wasp
#

||you dped right||

ivory marsh
#

I did far worse

compact wasp
#

i see

ivory marsh
#

At least better than my initial solution which used || A* with edge goal and estimate cost both set to permanent 0 since I don't understand them||.

rancid creek
#

part 2 today, ||which was for me literally change 1 character,|| still took me 60 seconds to submit. Which shows how slow I am. =/

compact wasp
#

it's monotonic so ||we know there won't be any cycles||, thus it's just ||memoized recursion||

ivory marsh
#

Yes but graphs make my head hurt, and ||rust doesn't have a nice @cache built-in||. I'll probably optimize it tomorrow once I'm less tired since that is untenably long, and I want to keep going no deps.

compact wasp
#

🫑

cyan sleet
#

struct with a hashmap from argument tuple to result, impl the function and just do the caching manually

#

in python it would be something like

if args not in cache:
  ...compute value...
  cache[args] = value
return cache[args]
warm fiber
#

@mossy basin just wanna say that I love your visuals and I'm going to try myself something, thanks for sharing your library ❀️

elder quest
#

functools.lru_cache is basically cheating

#

I love python

mossy basin
#

❀️ show me your visuals

warm fiber
mossy basin
cyan sleet
#

@minor cave congrats on picking fortran on the same day of the calendar and on another grid problem

#

so I could re-use my input reading code from last year

blazing vector
#

wtf is that 4.998873919248581e-07

cyan sleet
#

smol number

worthy arch
warm fiber
worthy arch
tender swallow
worthy arch
wary river
#

how did you || END UP USING A*, FOR WHAT JOY ||

#

which problem statement

modest sand
#

i rn doing aoc day 1 part 1 but the number that i got is minus

#

is that also valid ?

low condor
modest sand
#

i going make it abs()

low condor
#

Ok, just checking you didn’t overflow an int in another lang

low condor
modest sand
#

can i drop my code here ?

low condor
modest sand
#

but the output is wrong i don't understand

low condor
#

Then your code isn’t right :)

modest sand
#

i did this line for get total distance

tender swallow
mild hill
#

easy day today

#

still stuck on yesterdays part 2 though, works for example not for input D_Yikes

warm berry
#

Yeah Day 9 Part 2 might just be a skip for me

mild hill
#

SKIP ⁉️

#

My ego won't allow me to skip a day that comes before the day I reached last year

cyan sleet
#

if you handle things like ||(type, size) tuples|| it should mainly just be ||a nested loop||

warm berry
naive wharf
#

I just used ||2 separate lists, one for files (start, size, id) and one for space (start, size)||

random lintel
warm berry
random lintel
#

Oh, I hadn't noticed the channel, nice πŸ˜„

#

Also, thanks lemon_pleased

mild hill
#

I really hope it's just a 10 year anniversary and not the last AoC

paper folio
#

wow hope not, this is my first year trying it out πŸ₯Ή

mild hill
#

This is the first year I can actually commit to it

cyan sleet
#

the latter for ||picking what I was trying to insert||

limpid grail
limpid grail
#

i think you gave the guard some extra features 😹

#

very cool stuff!

mossy basin
random lintel
#

Thanks lemon_hyperpleased Insane library you built there

cobalt torrent
ivory marsh
cyan sleet
karmic coral
#

Anyone working on day 3

low condor
torpid karma
#

I solved part 2 day before part 1 because of a bug in my code that made it act like part 2 XD

#

Fixed the bug only to realize that I need to add it back

hybrid gull
#

Ctrl-Z was the theme for today

clear nest
#

Why was todays aoc actually suspiciously easy?

#

will tommorrows be hard or smth?

hybrid gull
#

Tomorrow will probably be Chinese remainder theorem or something like that.

#

(I kid, it's a bit early in the month for that.)

torn sapphire
#

you never know, maybe we'll be thrown the mid-week difficult curveball just to keep us on our toes

hybrid gull
#

Heaven forbid, maybe it'll be Beverage Bandits again.

torn sapphire
#

days 4, 6, 8, and 10 have involved maps or grids of some kind, so following the pattern, tomorrow will not involve any sort of grid, that's the only prediction i'm confident enough to make πŸ˜„

hybrid gull
#

I would be curious how the LLM folks do against a Beverage Bandits type of problem, though.

clear nest
hybrid gull
#

One of the longest leaderboard times of all problems. Top 3 I think?

#

2h 23m to fill the leaderboard

#

It was a day 15 too

cyan sleet
cyan sleet
clear nest
#

crazy

minor cave
#

If we have a 60+ minute leaderboard fill this year, I'm just gonna open the thread and trust y'all to only post when the global has filled. Ya girl needs sleep

compact wasp
#

there's only like 6 people here who'd get onto that leaderboard 😭

slender ravine
#

Hope I am not too sleepy that I can complete it and then go back to sleep for a while

magic oxide
#

hopefully it's not too hard so i can focus on catching up with roulette

#

oh today is C##

earnest forge
#

Good luck everyone

sour gyro
#

also hoping it is not too hard, im a few days behind

shut trellisBOT
somber trench
devout tusk
#

I was using a ||deque|| which was hellishly slow 😦

minor cave
devout tusk
#

50/87

#

@compact wasp about to steamroll my ranking πŸ’€

compact wasp
devout tusk
compact wasp
#

nah i think i'll be like #40

#

judging by last year

slender ravine
#

||Oh f, part 2 bf gonna take forever||

hollow wharf
#

I think the puzzle creator is getting a bit lazy

compact wasp
junior iron
#

aaaaaaaaaaaaaaaaaaa

pine tiger
#

unlucky

#

but hey

junior iron
#

sorry my keyboard spazzed out

pine tiger
#

we power on

hollow wharf
slender ravine
#

Just 39

late frigate
#

me submitting the demo output :|

slender ravine
#

Took 7 minutes from 39->41

mystic gull
#

everytime theres "after X amount of times" in the question, p2 most surely will be just "iterate more times"

#

i swear

woven oriole
#

ggs

devout tusk
pine tiger
#

ok king

ivory marsh
#

Today is one of the days I was dreading. Part 1, simple, trivial even. Now I have to somehow figure out the pattern for part two, or wait several years for my existing code to finish

somber trench
#

part 1

magic oxide
random lintel
#

We'll see about that, time to get on the campus cluster

rancid creek
ivory marsh
random lintel
#

Does AWS still do free trial months pithink

warm gazelle
#

part 2 is going to take approximately 4 * 10^17 years to brute force...

warm gazelle
ivory marsh
#

Well they’re the same for me since I can’t wait several years or several universes. I wonder if the needed memory would fit in the universe.

normal dragon
#

I want to see someone run the brute force version on amazon

ivory marsh
#

Also since I had to restart my computer windows finally got to install updates 😭

magic oxide
#

we're only talking about like ||petabytes, and google has way more than that||

random lintel
#

AoC scorns independent coders; new challenges heavily biased towards tech giants

magic oxide
#

can't wait for day 12 to be "solve the TSP for this graph with 1 million nodes

kindred zodiac
slender ravine
slender ravine
slender ravine
cyan sleet
hollow wharf
#

Today reminds me ||of the fishes challenge||

normal umbra
hollow wharf
#

||Will solve it the same way||

oak pier
#

.

hybrid gull
spice hemlock
#

d4\

bleak sable
fervent anchor
#

yea i know it's gonna make number ten

#

ten for ten years

#

why haven't I realized this sooner lol

karmic coral
#

bro is cooking

hollow wharf
#

||Solved day 11 exactly like day 6 of 2021 and part 2 was just about changing the amount of blinks py_guido||

woven oriole
warm gazelle
warm gazelle
warm gazelle
# woven oriole i am more curious about this expression derivation

i made this excel sheet (spoiler-ed because it has my answers to different blink iterations) but essentially i fit an exponential function to the time between each blink iteration (graph not shown in the image, but the data is column B), then found the integral of that exponential function to get the total time for a given iteration

slender ravine
#

I want to try find a value that can cause all code that use long or ulong for storing the number break (or eq.)

woven oriole
slender ravine
#

because the next interation taking more double of the last doesn't sound reasonable

warm gazelle
#

it's probably not the most rigorous way to do this and would probably give incorrect results, but i'm not trying to get a super accurate time estimate anyway

warm gazelle
#

excel does all the regression math for me

woven oriole
#

Yeah I didn't mean manual nvm

#

But regression

slender ravine
#

it each take like 2.5* the last time, which don't make sence because data could only maximum double in size

karmic coral
#

is anyone doing aoc in mojo

hollow wharf
#

got released now?

dense gale
#

i really dont want to drag myself into this i have no motivation lol

unique osprey
#

first step is click on the 1 and reading the problem

velvet stag
#

writing and sending the comment is most of the fun, I don't think there's something expected from us

warm gazelle
#

honestly i have no idea why that happens

slender ravine
#

I think you count the whole time from 1->28 instead of just 28, for what I meant

warm gazelle
#

actually i think i copy the stones list before working on it, so maybe that adds to the extra time when n is large

slender ravine
#

Could be

warm gazelle
#

it could just be that my processor was also doing other stuff during that time (e.g., another application was open)

slender ravine
#

Hmm fair, can you send the code in d11 spoiler?

#

Also could use CPU time instead

slender ravine
warm gazelle
slender ravine
#

you need to do the whole process once,

#

like for having 13, it won't take the previous result of 12 and calculate 13, but it need to calculate 12, 11, 10 etc.

unique osprey
#

<@&831776746206265384>

frigid mural
#

!rule 5 We cannot assist with malicious projects, nor direct you to them. I'd strongly advise you against engaging with these, please do not ask for help on this or related matters.

marsh currentBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

unique osprey
#

Also this channel is for advent of code

naive wharf
slender ravine
karmic coral
#

i wanna do aoc in assembly. the older the language the better

rapid wolf
#

assembly is interesting for AOC, but quite painful when it comes to parsing the input.

long egret
#

you can solve all of them by hand. the oldest method of all

distant igloo
#

I solve every problem with an abacus and a chalk board

unique osprey
#

Is it related to aoc?

frigid mural
#

Just came backfrom a little hiatus to the rust discord and god the unsafe + SIMD war crimes they're throwing around are amazing

#

Take day 10 for example, people are actually hitting 58 microseconds??

distant igloo
#

Time to solve or execution time?

#

I guess it must be execution time since it's Rust

unique osprey
#

Nah it took me 58us to read the problem and come up with a solution

distant igloo
#

Well there are people out there solving puzzles with AI and solving in seconds but microseconds would be a bit much I guess

sly shale
#

you don't necessarily solve it everytime, but we can cache the results ongoing

karmic coral
sly shale
#

there are commercial apis for hcaptcha available out there

earnest forge
#

GLHF!

peak dock
#

good luck have

magic oxide
#

good luck have?

earnest forge
#

Good luck have factorial

shut trellisBOT
compact wasp
#

why's this one so tedious πŸ—Ώ

devout tusk
#

That's not the right answer. If you're stuck, make sure you're using the full input data; there are also some general tips on the about page, or you can ask for hints on the subreddit. Please wait five minute before trying again. [Return to Day 12]
😦

compact wasp
#

so many edge cases bruh

late frigate
#

finally lb position...

minor cave
devout tusk
#

WTH was this question?! 91/230 lemon_angrysad

compact wasp
#

it's simple just tedious

#

hence i didn't feel like implementing

devout tusk
compact wasp
#

||just trace the edge and record direction changes||

#

also funnily enough i think this would've been trivialized with ||shapely||

#

could've gotten #1 if i remembered that existed in time

pine tiger
compact wasp
#

yeah i realized that a bit later πŸ’€

feral hazel
compact wasp
#

😭

devout tusk
#

how many of the global lb people are on this server?

#

is there like a private leaderboard for that?

peak dock
#

πŸ’€

woven scaffold
#

It seems llms are struggling a bit more with part 2 today

peak dock
#

although this one is like 20 minutes old

woven scaffold
#

Seeing some more reasonable times and names I sort of recognise

compact wasp
#

lol yea

hollow wharf
magic oxide
#

i enjoyed today

compact wasp
#

masochist

magic oxide
#

i didn't do that well

#

but i got to use my favourite data structure

#

so it was worth

compact wasp
#

what's your favorite

magic oxide
#

||dsu extra whitespace||

compact wasp
#

whitespace kek

magic oxide
#

is the text not white

hybrid gull
#

lol wait a sec, am I reading this right? So 98 of the "people" who got lb for pt1 failed to make it on the lb for pt2? Haha, that must really get their knickers in a knot πŸ˜‚

thin topaz
#

I counted 1 more sides out of all the regions in the puzzle input...

oak flax
#

todays problem fells hard lemon_angrysad

cyan sleet
#

wtf is purescript?

#

PureScript is a strongly-typed, purely-functional programming language that transpiles to JavaScript, C++11, Erlang, and Go.

#

huh

#

file extension .purs

cyan sleet
magic oxide
#

||works very nicely with my usual dict[complex, ...] approach as well||

cyan sleet
#

now I need to figure out how to do graphs in a functional language πŸ₯΄

#

please have some hash map type

#

or some mutable random access type

peak dock
#

mfw we have a purescript coredev in pydis staff

rapid wolf
#

and objects, of course.

spice hemlock
#

E

cyan sleet
#

D was yesterday, so today logically should be E

hollow wharf
#

Part two today surprised me..

low condor
#

I can't say I was surprised by P2 today. But it was a bit of a pain to write

hollow wharf
#

yeah

floral hare
#

looks like I'm 21 on PyDis's 2024 leaderboard

#

yet I'm no where near the top 100 in the total lb

buoyant slate
#

what should i do with day 12

#

im not doing official but im doing just ideas

#

im doin next years

#

ignore day 7

unique osprey
buoyant slate
#

which is

unique osprey
#

The official name for the day's problem

#

That's what you're asking for right? A good name for the solution?

#

Another good one might be ElfZoningCommittee.py

magic oxide
#

AbnormalFencePricing

naive stone
#

any helpers out there feeling helpy? My day 12 part 2 code works for every example given, but not my input. I've tried coming up with my own examples, and it works for those too

unique osprey
#

That's the one that got me

naive stone
#

oh wtf.. my code thinks one of the X's has zero sides

#

my code actually super failed all of these plants i think. weird

#

oh

#

damn

#

that is crazy

unique osprey
#

||yeah. mine was not detecting the corners when the diagonal was the same char||

naive stone
#

yep

#

dammit, i can't believe there really were more edge cases i didn't think of

rancid creek
naive stone
#

appreciate it @unique osprey

unique osprey
#

Hey happy to help

#

It's not like i do any real work in december

rancid creek
#

My code only checked ||orthogonal directions|| so I didn't run into that edge case.

unique osprey
rancid creek
zinc kindle
#

And I got 1306/18722 . The strategy of "sleep on the problem then come back in the morning" was successful eventually, but wasn't good in terms of leaderboard placement.

unique osprey
#

The problems release at 10pm my time. Last couple of years i tried staying up until i solved it, then i tried what you said and just reading the problems then go to bed, but that would always keep me up thinking about it haha

#

so this year i just do the whole thing when i get to my desk in the morning

rancid creek
rancid creek
peak dock
peak dock
#

coincidentally i had my best rank so far this year on p2

hazy ermine
#

hahastinkypoop

mossy basin
#

i spent a lot of time trying to figure out how to trace edges from a batgrl.region

rancid creek
#

I had a hard to track error in my code (had the wrong variable listed in an equality check). Code looked fine, but it wasn't until I debugged line by line I saw it.

mossy basin
#

but i couldn't figure it out

hazy ermine
#

whats a batgrl

rancid creek
zinc kindle
unkempt solstice
#

Hi, I just joined the meeting and this is first meeting, what are guys working on and how often do you do this

rancid creek
rancid creek
unkempt solstice
#

No

#

What can I do to catch up?

rancid creek
#

9 hours until new puzzle!
/happy dance

strange zinc
#

after today's p2...

#

i was like "ah, simple enough". Then had to code it and was like: "nah, nvm"

cyan sleet
#
  Could not match type

    Int

  with type

    Number
```![pithink](https://cdn.discordapp.com/emojis/652247559909277706.webp?size=128 "pithink")
#

mfw

spago install integers
rapid wolf
#

classic

cyan sleet
#

any rouletters who can tell me how to read strings from stdin in purescript?

#

all things I've seen has been mildly cursed

magic oxide
cyan sleet
#

ah, yes

readTextFile UTF8 "/dev/stdin"
cyan sleet
rapid wolf
cyan sleet
#

AAAAAAA

#

I just want a visited set 😭

#

with not absolutely horrible performance characteristics

#

I don't want to be linear searching through a list for this

hollow wharf
#

god i love discord's markdown parsing

#

you can't send a spoilered codeblock that contains ||

#

which is an operator used by quite some languages

#

||```
left || right

#

🦧

zinc kindle
#

testing: || a \|\| b ||

#

testing2 ||

a \|\| b
cyan sleet
#

this day sure is a day

#

somehow we've avoided graph problems in functional languages previously

zinc kindle
#

Yeah, the both parts:part1 ratio is the highest it's been this year so far. Still not as bad as 2013/day 21, but we've got 2 weeks left still.

cyan sleet
#

like, I know what I want to implement

#

but mutable state in functional languages is...not fun

cyan sleet
#

oh no

#

this is not what I want to see in a functional language

RangeError: Maximum call stack size exceeded
cyan sleet
#

oh, it was an actual bug

#

apparently trailing newline blows my code up πŸ₯΄

#

fun bug actually

#

bug: ||I fill the outside of the grid with ? and the zero width last row is incorrect, but my code things it's a full length row, so it traverses into infinity chomping up ?s||

hybrid gull
#

GLHF

shut trellisBOT
ivory marsh
#

Wow, I think I’ve solved a lower dimensional equivalent of todays problem in APL before

compact wasp
#

30/25

#

meh

magic oxide
#

ah yes wrong answer

#

how tf do i debug this

compact wasp
#

i spent a while on pt2 to ||look up documentation for z3||

magic oxide
#

i hate ||floats so much||

#

i could've leaderboarded on p2

#

pain

compact wasp
#

lol ye it was slow

devout tusk
#

98/215 😦

devout tusk
pine tiger
compact wasp
#

lmao nice

devout tusk
#

my ranks keep dropping. I'm without internet for the next 3 days. I'll likely be out of global leaderboard

magic oxide
compact wasp
#

i think the #1 stopped aoc so i should be able to get to #2 tomorrow

devout tusk
magic oxide
#

i didn't use ||z3 either||

woven oriole
#

wtf strong

thin topaz
#

causally getting screwed by floating point imprecision

mossy basin
#

well, at least you know you aren't time traveling

slender ravine
#

Why would you need floating point πŸ’€

hollow siren
#

This is my first project

slender ravine
small solar
#

hi

torn sapphire
#

hmmm

#

i think i see the solution to today but don't have the time to sit down & solve it 😭

ivory vigil
#

I used z3 but I think it might be a pretty simple ||pair of linear equations||

torn sapphire
#

that's basically what i was thinking the solution was :P

tender swallow
#

||it is||

short sedge
#

@umbral vortex hey remember me

scarlet locust
#

i do wish part 2 showed the correct output for the example, though... would've made debugging easier

lime fulcrum
#

was wondering why my code stopped working. hmmmm

wary river
#

accidental backspace

lime fulcrum
#

yeah swapped the example input to the real input

golden widget
#

Pls user VSC or Pycharm or Github for Development code

hollow siren
golden widget
#

How can you take part in the advent calendar?
I don't really understand

tulip harbor
#

I hate that I've once again reached the point with AOC this year where between work and other stuff I don't have the time to keep up. 😦

ripe meteor
#

You cant spare 30mins in a day to save Christmas?

naive wharf
slender ravine
#

Just sleep less, simple
<- Wake up at 5am, hopefully complete in an hour and hopefully can go back to sleep

lime fulcrum
ripe meteor
#

Less? πŸ™Š

tulip harbor
tulip harbor
distant igloo
#

At least one of them is solvable in less than 30 minutes

rancid creek
tulip harbor
#

Another problem I have is when the problems start piling up in my backlog it's hard to go back and pick one.

warm gazelle
#

just spent an embarrassingly long amount of time trying to debug my code only to realize i was using the sample input for day 12 part 2

earnest forge
#

Good luck everyone

slender ravine
#

what is roulette today

magic oxide
#

i just rolled out of bed

shut trellisBOT
long egret
#

this one looks familiar

onyx aspen
#

Wth this is!😭

#

It looks like a values mixed with lists!

long egret
#

time to bring out the regex

devout tusk
#

What am I missing?!

pine tiger
#

omg

#

on plane

#

i literally can’t

earnest forge
#

Wtaf is this part 2

compact wasp
#

tf is p2

pine tiger
#

or would that count as spoilers

compact wasp
#

it's supposed to form a picture but idk what the picture is supposed to look like

earnest forge
pine tiger
#

??????

earnest forge
#

Yeah exactly

pine tiger
#

thats actually so nasty

#

is this the

#

chatgpt repellent?

compact wasp
#

what does it mean by this

pine tiger
#

because goddamn it sure as hell is a human repellant as well

compact wasp
#

can someone send me a pic of what it's supposed to look like πŸ’€

magic oxide
#

wtf is p2

devout tusk
#

p2 aint' working for me

minor cave
devout tusk
#

WTF even was today.... 8/228 πŸ’€

compact wasp
#

i still don't know what they mean by christmas tree

devout tusk
compact wasp
#

😦

slender ravine
#

what is p2

earnest forge
earnest forge
compact wasp
#

bro really expects me to sit through 8k cycles

magic oxide
#

?? i still don't understand with the image

modern terrace
#

what exactly is a christmas tree

earnest forge
#

HUGE spoilers for p2

||gur vzntr nccrnef jura gurer'f bayl bar ebobg va rnpu gvyr||

devout tusk
magic oxide
#

wait a second

#

oh ffs

#

surely not that

compact wasp
#

i was literally just spamming return

#

waiting for it to show up

#

πŸ’€

earnest forge
#

(it comes at roughly t=||8000|| you're gonna be there a while)

compact wasp
#

yeah ik

#

||7572|| for me

minor cave
#

can we spoiiler a bit more in this chat?

compact wasp
#

my finger is tired

devout tusk
minor cave
#

thanks <3

covert arrow
#

My flight got delayed so I just started 😩

modern terrace
#

delayed by OBOE

#

wow

#

i should place my print()s at more strategic positions

devout tusk
magic oxide
#

can i have a question answered to see if i'm on the right track: ||does this christmas tree include the base of the tree||

earnest forge
modern terrace
#

2033/790

#

best for this year

compact wasp
earnest forge
compact wasp
#

you ain't detecting it

magic oxide
#

???

devout tusk
earnest forge
modern terrace
#

how do people figure this out in 2 minutes TT

#

what if they just have ||an ASCII text image recognition library...||

#

oh well

compact wasp
modern terrace
compact wasp
earnest forge
compact wasp
#

omw to rank grids by embedding cosine similarity to christmas trees

modern terrace
earnest forge
modern terrace
#

i'm not an eric expert so

compact wasp
#

if you had the money then it'd probably work

modern terrace
#

oh my god i didn't even realize ||it looked like it had a snowy or starry background||

earnest forge
#

I'm surprised it manages that but you should probably spoiler it lol

compact wasp
#

oops

long egret
#

chat what is part 2

woven oriole
#

thanks

woven scaffold
woven oriole
#

intuition

earnest forge
woven scaffold
#

wtf

earnest forge
woven scaffold
#

||Bruh I thought I was supposed to be looking for an image of an easter egg||

#

Lmao

woven oriole
#

orz

earnest forge
#

It's the kind of assumption you've had to make before

earnest forge
modern terrace
long egret
#

idk if im just really dumb but i dont get it lol

woven scaffold
#

wait

magic oxide
#

dw

woven scaffold
#

I think I have off by one error

#

gg

magic oxide
#

i didn't get it either

#

just try stuff

woven scaffold
#

Man

modern terrace
woven scaffold
#

Huge reading comprehension failure

long egret
modern terrace
long egret
#

eric must've been in a trollish mood when he wrote this

compact wasp
humble copper
#

im going insane

slender ravine
#

||I mean, he probably built it in reverse starting from the tree, so It makes sense why it doesn't overlap||

tulip harbor
#

I'm having a lot of trouble getting the right answer on day 6 part 2 - is something off with my code here? ||I'm recording all of the visited spots along with directions and iterating through putting a barrier on each. Maybe I'm brute forcing it too hard or something, or am I just missing something? It works correctly for the examplehttps://paste.pythondiscord.com/EGRQ||

slender ravine
#

||what is the trouble, time? Or the answer wrong||

scarlet locust
tender swallow
#

1935/2960
personal second best so far, nice

rancid creek
rancid creek
humble copper
#

im so very lost

#

😭

tender swallow
compact wasp
#

for actual swe if it's stupid and it works it's probably still stupid

pine tiger
#

tysm!

zinc kindle
#

Is there a reason why the ||check for a state with no overlaps|| is a valid strategy, and can it be inferred from the puzzle? my strategy was ||look at every possible state and find the state where the total distance between robots is minimized, and assume that's the solution or within a few seconds of the solution||, which worked but had a runtime of ~1 minute (in rust release mode even) since my solution had a time complexity of ||O(n^2) per state, and with n=500 and there's lots of states||

magic oxide
rancid creek
kindred zodiac
rancid creek
rancid creek
mossy basin
compact wasp
#

debatably actual swe ig

#

i'm not swe i wouldn't know

pine tiger
#

haha

#

i slip one day

#

and get knocked down to 3

#

it is what it is

scarlet locust
#

well now that that's out of the way, what would you all say is the hardest day so far for you personally?

tender swallow
#

12p2 because of all the edge cases

wary river
karmic coral
#

anyone doing day 14

rapid fog
#

finished up a bit ago

#

whats up?

karmic coral
#

on part 2 is there an output easter egg or am i just looking for a time metricin seconds

rapid fog
#

you're looking for an actual tree lol

#

at some point in the input therell be a tree showing up

#

do you mean like your answer?

karmic coral
#

mb

rapid fog
#

your answer should just be the timestamp when the robots make the tree

karmic coral
#

ill check spoilers thx thx

tender swallow
#

your answer is the elapsed time in seconds at which point a tree shows up

coarse nymph
#

me staring at my bruteforced terminal animation waiting for the f---ing tree to appear:

#

(i won the staring contest)

rancid creek
coarse nymph
scarlet locust
peak dock
#

lmao part 2 is the funniest ive seen in a while

magic oxide
#

I'm gonna hope day 12 purescript isn't too hard

#

would be good to catch up tonight

#

and then i can stop spending my entire day reading language documentation

vestal token
#

are we allowed to commit aoc code solutions to github? Is adding input.txt in .gitignore enough?

scarlet locust
peak dock
#

no shot

vestal token
#

do most people generally use one python file for each day of advent of code, or one python file for each part of each day?

modern terrace
scarlet locust
peak dock
#

i see the first one more often

#

i have a notebook per day

magic oxide
#

i have both in my repo

modern terrace
magic oxide
#

because i started off doing 2 files and then switched to 1 file

scarlet locust
#

day 4 I split into two files because of how different my methods were :p

woven oriole
#

i generally try to calculate both p1 p2 in same function call, using flags and shit

night dome
woven oriole
#

strong

slender ravine
#

function name:
solution\d+[ab]

karmic coral
#

Do we all get AoC tshirts after whatcanisay

fervent anchor
#

my gosh i'm running day 14 part 2 really slow

shell heath
#

I will open staff application if my server will be complete 30 members dm me to join and get a chance to become a staff

tender swallow
humble copper
#

idk why, but this years challenges seem significantly easier than the last time i got this far (2021)

rapid wolf
#

you may have just improved

hasty wasp
#

Just started the advent of code today at day 14 πŸ˜…

#

The fact that day 1 is two one liners is wild

tender swallow
hasty wasp
#

Oh sorry MB

#

Deleted the message

rancid creek
karmic coral
#

Just wait for day 25 finish that puzzle and then say you completed aoc 2024 πŸ™Œ

cyan sleet
#

πŸ™ƒ

unique osprey
#

Gonna be honest it's my sixth year doing aoc and I've never made it to 25

rancid creek
pine tiger
#

hey does anyone know if i can access adventofcode in china

shut trellisBOT
covert arrow
#

Alright I think this is outside the scope of what I can do on mobile

#

glhf everyone else

devout tusk
#

can't solve p1. i think i'm missing some weird edge cases

long egret
#

try not to make a grid based challenge challenge (impossible)

floral hare
#

Hey doesn't today remind of sokoban?

tall quest
#

Was getting myself back into AOC then realized my brainpower is low, took considerable amount of shifting gears.

devout tusk
#

i'm out of ideas on what i'm missing

wary river
#

maybe that's a hint?

karmic coral
rancid creek
rancid creek
woven oriole
#

okay tf is p2

earnest forge
floral hare
#

the way it's programmed does resemble it

#

but I'd say it's more or so || sokoban || since the problem literally says,

|| elaborate warehouse complexes operated by robots ||

slender ravine
#

Idk what wrongs with my code but the example (which is smaller than puzzle input) take comparable longer to run πŸ₯΄

floral hare
#

it's just from p1

slender ravine
#

Still, someone might reading the chat that haven't even open the question yet

#

So put a spoiler is always a great habit

karmic coral
#

bruh i got #2 on lb for day 15 part 2 sheesh

rapid fog
#

yea my part two just isnt working lol. Idk what to do abt it

rapid fog
#

im guessing a lot of people's sols dont either

floral hare
karmic coral
#

what doe the percentages mean here: Day ⭐ ⭐⭐ | %⭐ %⭐⭐

  1. 395 389 | 33.00% 32.50%
earnest forge
#

% completed out of everyone on the board, I would assume

rapid fog
karmic coral
#

what is the oof far what happened

earnest forge
#

...bearing in mind today's problem has only been out for an hour

rapid fog
#

yea but look at all the days

#

it is slowly reducing

earnest forge
#

That happens every year

karmic coral
#

yea the leaderboards are subjective. it doesnt account for difficulty of programming language or ease of

rapid fog
#

decided to stick it out this year atleast

pine tiger
#

HAHAHAHA

earnest forge
karmic coral
#

i started 10 mins late im coming for you 0o31 πŸ˜‚

earnest forge
#

'I'm coming for you'
most of my p1 solves being less than 10 minutes

karmic coral
#

they dont account for hardware too some may have old old laptops or computers

earnest forge
#

To be fair those people are probably not trying to compete for global

peak dock
#

ehh the bottleneck is dev time not runtime

earnest forge
#

After the first week or so, yeah well actually it's kinda both for the first week

karmic coral
#

well software is also subjective too ive been doing aoc on command line

#

yeh dev time

#

i have a headache need agua

pine tiger
#

ok 30 pt diff

#

it is what it is

earnest forge
#

Tbh persistence is how I won the pydis board (and got 78th global) in 2019 lol

pine tiger
#

in retrospect intcode seems fun

#

at the time it was awful

#

i still think that network design spec was really vague

modern terrace
#

1786/1819

#

first time since day 5 i had both ranks below 2k

magic oxide
#

honestly it's somewhat nice to have just gotten home

#

i can take my time instead of trying to rush and not getting leaderboard anyways

earnest forge
#

Β―_(ツ)_/Β―

earnest forge
compact wasp
#

damn i took a nap and missed it

karmic coral
tender swallow
#

937/2499
personal best for p1, nice

slender ravine
#

My best is this:

  3   00:05:21   1671      0   00:09:05    883      0

ik not great

tender swallow
slender ravine
#

that was just typing speed probably

spice hemlock
#

e