#advent-of-code

1 messages · Page 25 of 1

weary topaz
#

though I have noticed the colors are alternating...

#

still

minor cave
#

lol I don't think the color of the embed makes too big of a difference in a FAQ channel like that. It's just alternating red and green

weary topaz
#

idk, without reading too much into it, you get the impression that what the title describes is allowed

#

and like... people typically don't read and such

minor cave
#

I expect people to read the message and not infer the message based on the embed side color considering the context of the rest of the channel :)

slender ravine
#

I bet day3 input would still be reading line where the order of line doesn't matter 🤔

signal kestrel
minor cave
slender ravine
#

I just realised I cannot use the argument that they have to read the question so they would read 🥴

#

Gn and see y'all in 6h (I think

minor cave
#

&aoc c

shut trellisBOT
#

Day 3 starts <t:1733202000:R>.

slender ravine
#

Yep, 6h

#

Hopefully 2 alarm and 1 countdown could definitely wake me up

marsh currentBOT
#

:incoming_envelope: :ok_hand: applied timeout to @rustic cobalt until <t:1733180849:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

strange zinc
#

lol

slender ravine
#

Like why 🥴

cyan sleet
slender ravine
#

Did we just have an example 🥴

minor cave
#

they're gonna keep that one

weary topaz
slender ravine
#
>>> max(Human.attribute.stupidity.range)
math.inf

🥴

cyan sleet
slender ravine
cyan sleet
#

!e

stupidity = float('nan')
if not stupidity <= float('inf'):
  print('stupidity is not smaller than infinity :O') 
marsh currentBOT
rustic cobalt
slender ravine
jovial jay
#

day 2 seem a little tricky. sample works with my code, but not sure what's up

#

the part 2

empty gulch
#

Is there any people active here?

strange zinc
#

maybe

low condor
#

yes lots of people are here chatting

slender ravine
#

If you send this in #aoc-solution-hints I might give some clue about what mind be the issue from my friend

slender ravine
empty gulch
#

Oh, I-
WHY THERE IS ELSA PROZNE
(no hate)

slender ravine
#

?

low condor
#

prozne?

cyan sleet
slender ravine
jovial jay
#

my answer is correct for part 1. part 2, dunno what's up

slender ravine
#

Maybe ||You removed item by element value instead of element index?||

slender ravine
strange zinc
#

or maybe ||not copying the array when removing elements?||

cyan sleet
slender ravine
#

Whatever, need sleep now lul

jovial jay
#

so far, aoc is fun

hollow wharf
#

yup

#

any one alive

#

someone

jovial jay
hollow wharf
#

do you konww hindi

#

or are you indian

#

@jovial jay

jovial jay
#

no to either. not relevant either.

tepid cairn
#

ughhh

#

i want to do aoc, but there's too much schoolwork this week 😭

cyan sleet
#

you seem to have time for smalltalk

distant igloo
#

Some of the puzzles might take longer than the three seconds it takes to type that

cyan sleet
#

you missed the joke 😔

tepid cairn
jovial jay
#

Day 1 is so easy a caveman can do it

magic oxide
tepid cairn
#

yeah probably

#

well whatever, I'll catch up over the weekend

#

im free a total of like, three hours on saturday 😭

ivory marsh
#

It took me 15 mins to do day 2 in rust, massive despair that writing rust takes me twice as long as python

hollow wharf
ivory marsh
#

It’s very nice when I want to be confident my app won’t suddenly crash, but also why my stuff no type check :(

dusk crow
ivory marsh
dusk crow
#

day 3 is in 20 minutes ducky_concerned

ivory marsh
#

That’s the attitude

paper folio
#

Yeah took me a while to solve day2, might as well wait for day3 release

dusk crow
#

really close to the day 3 release

earnest forge
#

Good luck with today's puzzle everyone

dusk crow
#

ive got vs code prepared

ivory marsh
#

I’m going to have to use online python on my phone ;-;

dusk crow
paper folio
#

LOL I read that as food and was very very concerned

ivory marsh
#

It was before I edited it, since I’m eating rn

paper folio
#

lol

dusk crow
#

how do people have 589 stars??

distant igloo
#

Is the top person on the leaderboard from day one still the GPT cheater that committed their cheating code to Github?

minor cave
dusk crow
#

still how do they have that much score

minor cave
#

For the global leaderboard or private ones?

dusk crow
minor cave
#

You get points based on how fast you finish. If you finish first, you get X amount of points, where X is the number of people on the leaderboard. If you finish second, you get X-1 amount of points, etc

dusk crow
#

ooh

shut trellisBOT
dusk crow
#

yay todays one is released

#

this one is confusing /:

frosty zenith
#

how do i remove the aoc role from myself

hollow wharf
#

Is 1am rn 😭

minor cave
hollow wharf
#

This ping just wake me

shrewd sentinel
#

isnt 3 just regex

distant igloo
#

You're wild for not having do not disturb mode on your phone

compact wasp
#

24/12

#

yippee

devout tusk
#

68/27!

minor cave
marble talon
#

welp i am so cooked

stable shale
#

152/228, so close

#

Oh well

compact wasp
#

skill issue

hollow wharf
#

Got it. Yay

#

That was my first ever aoc.

compact wasp
#

w

devout tusk
slender ravine
#

Done ||easy with regex||

late frigate
#

ok wow i was not that good at regex

hollow wharf
#

Um... Just noticed that there is a part 2.

compact wasp
#

😭

#

i feel that lol

void ocean
#

going crazy trying to find what's wrong with mine for part 2

devout tusk
void ocean
#

bruh

#

nvm i forgot we have a dedicated channel for this

hollow wharf
#

Well, my part 1 solution had an eval so I can only imagine what madness I will come up with for part 2

compact wasp
mellow girder
#

aoc day 3 was easy

#

i spent an hour for yesterday's one

compact wasp
mellow girder
#

and 8 minutes for today

compact wasp
#

oh

mellow girder
compact wasp
#

global

mellow girder
#

im at school lmao

compact wasp
#

lol

#

rip

mellow girder
#

its rly bad bc i had to go home yesterady

#

im doing it in class becacuse aoc > learning

compact wasp
#

dude yesterday was so bad

#

bc the thing wouldn't load

#

😭

mellow girder
topaz coyote
#

Is the advent of code server off by 5 minutes or is it my computer?

mellow girder
#

11th on pydis

hollow wharf
#

yo when aoc 3 come out?

compact wasp
mellow girder
#

wow

#

what did you do

#

i just ||used regex||

compact wasp
mellow girder
#

fair

hollow wharf
#

and it looks like a regex

mellow girder
#

i probably woulda gotten 2 minutes for the first one

#

if

#

i came in earlier

#

but

#

school

modern terrace
#

ooo

compact wasp
#

i did it in ruby though since i feel it's a bit more ergonomic than python

mellow girder
dusk crow
#

yay im 18th on the leaderboard

compact wasp
#

sheesh

mellow girder
#

imagine learning at school when you could do aoc smh my head

modern terrace
mellow girder
mellow girder
dusk crow
modern terrace
topaz coyote
#

I used an function made last week called unformat that compiles a format string into a namedtuple maker. because I didn't have access to a regex manual when I needed one.

compact wasp
#

found jimmy's real name

dusk crow
#

most people on the public used chatgpt

mellow girder
#

hol up is jimmy xelf

#

jimmy = xelf confirmed

dusk crow
#

apprently chatgpt slowed down whenaoc day 3 released

compact wasp
#

nah they have multiple boards

dusk crow
mellow girder
#

lmfao

devout tusk
# compact wasp

pretty similar... there is nothing but worse ranking from here on for me lmfao

somber trench
#

For day 3, if a digit Is more than 3 long then don't accept it right?

mellow girder
#

using chatgpt is

#

skill issu

mellow girder
#

what are these timezones

compact wasp
#

pacific

mellow girder
#

im in class when aoc comes out 😭

gilded osprey
devout tusk
mellow girder
devout tusk
mellow girder
#

aoc comes out at different timrs for everyeon

#

so

#

you can be in class when it comes out (like me)

#

or aslep

#

or smth

devout tusk
#

comes up at 10:30 am for me. I'm in UTC+5.5

magic oxide
#

i am not having fun trying to run elm

slender ravine
somber trench
#

For day 3, should mul only be accepted or can Mul/mUl etc be accepted too?

frosty zenith
slender ravine
somber trench
#

Alr cool

topaz coyote
#

utc -5 here

somber trench
#

Also, were able to solve these literally any way other than Ai right?

topaz coyote
#

Sometimes I'm up at midnight and do them, sometimes I play before breakfast.

slender ravine
#

I mean, most people here won't solve it with AI

topaz coyote
#

I get few enough fun puzzles in my life, why would I share with a bot who won't enjoy them?

mellow girder
#

so you get a bigger number compared to everyone else

somber trench
#

My solution is gonna be scuffed af

twin widget
#

oh

tender swallow
#

@twin widget please delete your message, you're going to spoil it for people

somber trench
#

Dang, this day is confusing

peak willow
twin widget
somber trench
#

I'm on that one rn

twin widget
somber trench
#

Regular expressions?

twin widget
#

yeah re

twin widget
somber trench
#

I'm using splits lmao

twin widget
#

split("mul")

#

?

somber trench
#

Yea

compact wasp
tender swallow
compact wasp
#

your name's green now

twin widget
#

hahaha

twin widget
tender swallow
#

sure

magic oxide
#

doesn't mean much

#

thought it'd have time to help out, and then uni came in

slate berry
#

Can anyone guide me how to learn regex for CPP and python

stiff prism
#

bharadwaj are you still on valorant

magic oxide
#

i still haven't even started coding in elm yet

#

just trying to run hello world

tender swallow
compact wasp
#

bro time passes by so quickly

#

2 yrs ago i was a high school patzer

#

now i'm in grad school 💀

#

undergrad goes by fast

stiff prism
#

matrix

modern terrace
#

challenge language is functional

#

scary

magic oxide
#

ok for anyone else doing roulette

#

it's probably easiest to just write an elm file that exposes a String, and then in the repl import your module and look at the string

#

i kinda don't wanna deal with the whole "make an html file etc" so that's how i'm doing it

modern terrace
#

i'm doing elm in the official website's TIO

forest apex
sullen ruin
forest apex
#

Can be. But their regex stuff was great for a problem like this.

slate berry
#

I just wanna get knowledge of regex

modern terrace
quasi forge
#

Who pong me :(

magic oxide
magic oxide
low condor
#

I have literally never heard of Elm

#

Another lang I will ignore

floral hare
#

also is it just me or the number of people participating has drastically decreased

modern terrace
slender ravine
#

You mean compare to last 2 day or?

icy thunder
slender ravine
#

Yes, that's quite normal tbf

#

Cuz the question is getting harder and not everyone have the extra time to solve it or even know how to

#

And more could just:
Oh, AOC start now? Let me try it
And forget about it the next day

magic oxide
#

so that actually helped

scenic kernel
#

guys why does this give me 1 even though 4-4 = 0

#

which is not in 1 <x<3 or -1>x>-3

modern terrace
scenic kernel
modern terrace
marsh currentBOT
floral hare
#

I always wanted to join in, but didn't find the time to last year

icy thunder
#

But now you've found time to do so!

floral hare
#

Also, is the Puzzle Input different for everyone?

torn sapphire
#

yeah, everyone gets their own puzzle input (and so everyone has a different answer)

grand perch
#

how do i search for anything with mul(xxx,xxx) using the re module?

limpid grail
grand perch
#

ik

#

thats what i need it for

#

my main problem is that i want to search for the ( )

#

I tried this: print(re.findall("mul([0-9],[0-9])", RawData))

#

but it only searches for one digit numbers and the ( ) seem to confuse it

shrewd matrix
#

add backslash)

grand perch
#

it still doesnt find anything

#

how can i search for more than one digit?

shrewd matrix
grand perch
#

oh

#

so its this easy

#

i read about the + but didn't know how it worked

#

like if it alone was enough

#

i also thought i did something wrong when i added the \ on my own as it didn't find anything

shrewd matrix
#

well do you know how it works now

grand perch
#

thank you

cyan sleet
grand perch
#

Is it possible to save the location of the m from mul(x,x) using the re module and save all the occurences of mul(x,x) in a list of dictionaries?

#

like [{mul(15,76), 87}, {mul(86,755), 123}, {mul(966,66), 165}, {mul(965,706), 198}]

ivory venture
torn sapphire
#

!d re.Match.start

atomic cairn
torn sapphire
ivory venture
atomic cairn
#

Ah

#

From what i remember day 21 was quite difficult

ivory venture
#

oh I didn't do last year at all lol

torn sapphire
modern terrace
#

python bot is still typing..

modern terrace
torn sapphire
#

mb, that link should be to the #secret-python4-beta-test channel, idk if you can see that one tho

icy thunder
#

That's cool actually

modern terrace
marsh currentBOT
#

Match.start([group])``````py

Match.end([group])```
Return the indices of the start and end of the substring matched by *group*; *group* defaults to zero (meaning the whole matched substring). Return `-1` if *group* exists but did not contribute to the match. For a match object *m*, and a group *g* that did contribute to the match, the substring matched by group *g* (equivalent to `m.group(g)`) is

```py
m.string[m.start(g):m.end(g)]
```  Note that `m.start(group)` will equal `m.end(group)` if *group* matched a null string. For example, after `m = re.search('b(c?)', 'cba')`, `m.start(0)` is 1, `m.end(0)` is 2, `m.start(1)` and `m.end(1)` are both 2, and `m.start(2)` raises an [`IndexError`](https://docs.python.org/3/library/exceptions.html#IndexError) exception.

An example that will remove *remove\_this* from email addresses:
hollow wharf
#

woopwoop

modern terrace
#

the long-awaited invocation of the ancients has been dutifully answered

slender ravine
#

🤣

mental raven
slender ravine
limpid grail
#

you mean in the ascii diagram?

mental raven
limpid grail
#

hmm

modern terrace
leaden tartan
#

Am I crazy or was day 3 like 1000% easier than day 2

mental raven
modern terrace
#

probably..?

ripe meteor
leaden tartan
ripe meteor
#

premature optimizations?

#

first solve should always be brute force

leaden tartan
ripe meteor
#

no i mean the simplest way imaginable, compute all the possible arrays and check them one by one

#

also you should start the puzzle with looking at the input

#

like, with your eyes

#

lol

#

flashbacks to last year

leaden tartan
#

Gotcha. I thought iwas doing that tbh. I was printing out each line along with whether my script thought it was "safe" or not but I just COULD NOT get it to reliably give me what I expected. Eventually I did by ||trying to remove each item from each list|| but it took me an embarrasingly long time

torn sapphire
#

for day 2 part 2, ||brute forcing seemed immediately fine, since my input seemed to at most contain 8 numbers per line, meaning a worst-case bruteforce check was as costly as checking 8 lines, which isn't actually that much||

low condor
#

Day 2 Part 2 makes me think of that bell curve meme

torn sapphire
#

even just the very very first check of part 1 felt like that lol

#

||you either handroll some code to check if the numbers are sorted, or you let xs == sorted(xs) or xs == sorted(xs)[::-1] do its thing||

low condor
trail remnant
ripe meteor
#

it did?

trail remnant
#

Yes

grand perch
#

||Today I just used regular expressions||

trail remnant
#

||the start and end having differing directions to the rest of the values||

modern terrace
torn sapphire
#

||this is where bruteforce comes in handy||

trail remnant
modern terrace
#

it should be expected though

ripe meteor
#

do you have an example

trail remnant
grand perch
modern terrace
trail remnant
trail remnant
grand perch
modern terrace
trail remnant
modern terrace
#

||i think it's more of an insufficient generalization from the context and the cases that were tested :p||

trail remnant
ripe meteor
#

im not sure this counts as an edge case

torn sapphire
#

the example can only really give so many test cases, hell sometimes the point is that trying something on example input doesn't work on proper input (though that's usually due to complexity slowing stuff down over anything else)

trail remnant
ripe meteor
#

its only an edge case because of your solution lol

Now, the same rules apply as before, except if removing a single level from an unsafe report would make it safe, the report instead counts as safe.

modern terrace
trail remnant
ripe meteor
#

An edge case is a situation that occurs outside of what's normal or expected, and can be a problem or situation that falls outside of normal procedures.

grand perch
#

||just do the edge case manually :D||

#

||very bad idea||

modern terrace
trail remnant
ripe meteor
#

but this is part of the logic

trail remnant
grand perch
torn sapphire
#

this "edge case" you're on about can be handled using the same code as everything else

modern terrace
trail remnant
#

Yes because my solution is not the brute force one lol

#

it's an edge case for me but not for others

#

becuase of my choice of solution

modern terrace
#

how does it become an edge case anyway..?

ripe meteor
#

i mean, if the simplest solution covers it i dont think you can call it an edge case

trail remnant
#

Something can be an edge case for one solution but not for another one

grand perch
#

||bruteforce is the way to go||

ripe meteor
#

anyway, i was looking at the stats for day 2 yesterday and it was at 1/3 solves compared to day 1 💀

trail remnant
modern terrace
grand perch
#

it only takes like 0.5 seconds

trail remnant
trail remnant
#

not O(n^2)

grand perch
#

I understand

#

If it takes less than 5 seconds I would just bruteforce it

modern terrace
#

i wouldn't really consider it an edge case

#

unless

trail remnant
#

Well I do but who even cares? Not sure why you guys are all grilling me tbh

modern terrace
#

hmm

trail remnant
#

Just chill out really

#

Anyway day 3 was easy

ripe meteor
#

theyre all easy

#

waiting for day 5

#

😭

modern terrace
#

day 5...

#

yay...

trail remnant
modern terrace
#

the heavy train of advancement and smooth sailing derails somewhere along day 5

trail remnant
#

looks like day 5 is where I stopped in 2019

#

didn't do one since then

ripe meteor
#

someone needs to illustrate all our shenanigans in the north pole

#

over the years

magic oxide
#

idk i feel like day 15 is usually where things start to go downhill

grand perch
#

at what time do the new "tasks" release for you?

modern terrace
modern terrace
magic oxide
modern terrace
#

if you're talking about AoC, each day releases at the same time

magic oxide
#

arguably you're more professional than i am

grand perch
#

aoc

#

my english isnt very good

modern terrace
modern terrace
#

it's more like
knowledgeable in writing the code's algorithm i guess?

grand perch
#

for me its 6am

magic oxide
#

i just know a bit of dsa

modern terrace
#

if you know just a bit, then i know almost nothing :p

magic oxide
#

mine release at 4pm, but i'll soon be in 1pm territory

trail remnant
native oak
#

guys I just finished problem1 day1, considering the fact i am beginner beginner ahh I feel proud of myself 🥰

#

differences = 0
pos = 0

for l in left:
difference = l - right[pos]
differences += abs(difference)
pos += 1

(i felt so sigma coming up with this basic ahh logic)

hollow wharf
#

get out of my temporal lobe house

floral hare
#

who here used RegEx?

#

same

#

who here wrote, an entire parser?

mortal bronze
#

Yoo the day 3 is pretty high jump of complexity from the day 1 and day 2 😂

#

Never really got into world of parsing 😂 anyone can give me some good source that is perfect for noob like me 😂

tender swallow
mortal bronze
#

Well I made some interprets but it either use only one character or it has some proper syntax for each function like proper spacing or indication of end argument

mortal bronze
#

Wait sorry for ping idk what happened there

trail remnant
#

I think it was probably easier than using regex tho

topaz coyote
trail remnant
floral hare
#

ok

#

also

#

is the Puzzle Input different for everyone?

trail remnant
#

Yes

floral hare
#

oh cool

#

so, do they generate on spot or is it premade ones?

low condor
#

Pre-made because the site knows if you put in the answer for someone else’s input

peak dock
#

yeah theres some pre-made sets

floral hare
tender swallow
trail remnant
trail remnant
modern terrace
trail remnant
#

I can't find out if it is though

gritty gyro
gritty gyro
#

does it tell you it's wrong or that it's someone else's answer?

modern terrace
#

(and tells you you're wrong)

native plover
#

is everyone here doing aoc in python?

grand perch
#

Yes

#

It's the Python Discord

low condor
#

Not necessarily. We have a roulette where people do every day in a different language (announced by pydis staff)

grand perch
#

Oh

#

I didn't know that

low condor
#

Also people choose to code in other langs as well just because

minor cave
#

We do like Python obviously, but for a lot of people AoC is a good opportunity to try other languages they've been meaning to

charred flame
#

this cooldown sucks bruh

limpid grail
distant igloo
#

Most of the time if the example works, the real input will work as well in my experience

slender ravine
# charred flame this cooldown sucks bruh

so people cannot bruteforce and have no incentive to bruteforce to get into the leaderboard
-> You actually played the puzzle -> fun
-> You didn't DDoS the server -> Other have fun as well :)

tender swallow
#

I'm seeing people speculating that day 3's challenge may evolve into a full-blown parser/VM like 2019
personally I'd love that possibility

rapid wolf
#

it would end my uiua streak rather early.

ivory venture
#

Maybe a parser for vector operations 🙃

ripe meteor
#

No, i hate these challenges

#

Was it 2021 that had you do this

#

The opcode thingy

mossy basin
#

intcode computers were 2019

hollow wharf
#

why is aoc so difficult

night fractal
low condor
#

it shouldn't be so easy that you learn nothing :)

strange zinc
#

anyone used Koka before?

ripe meteor
unique osprey
#

I loved intcode. I wanna do it again

rapid wolf
slender ravine
tender swallow
rancid creek
rancid creek
rancid creek
weary topaz
#

wow, today's puzzle was like wayyyy easier than yesterday's

normal dragon
hollow wharf
#

Honestly ||never really used regex nor have lots of knowledge about them, just knew it exists and a little bit of documentation reading was enough||

normal dragon
ivory venture
#

I feel like people say we're gonna have parsers again every year every time there's a regex day

hollow wharf
#

Honestly i hate regex but it was screaming at me

normal loom
#

haha I gave my friend a crash course in regex, when you use a tool like regex101 they go from scary strings of text to something you can logically break down and understand quite easily

slender ravine
hollow wharf
weary topaz
#

now annotate tap ducky_devil

tender swallow
hollow wharf
#

it doesn't

rancid creek
hollow wharf
#

don't think you need years

rancid creek
normal dragon
hollow wharf
#

can't figure out whats wrong

#

me when spoilers not spoiler

#

me when small mistake

hollow wharf
normal dragon
weary topaz
hollow wharf
#

being rate limited

#

you code golfers are so cool

compact wasp
#

||regex|| is overkill

#

for the problem

ivory marsh
ivory marsh
ivory venture
compact wasp
#

it's nice to use here but the problem is fairly easy even without

#

though it'd still be fsm-like ig

jovial panther
#

:v

#

@compact wasp do you speak Japanese

compact wasp
#

a little

jovial panther
#

I see

#

Asked because of the katakana name

ivory marsh
normal dragon
#

(And also delete the original from this channel)

hollow wharf
#

advent of

#

advent

#

ahhh

#

kill the mouse

#

the killer died

#

revenge of mouse

topaz coyote
#

So, because all of the discussion of whether to use regex or some other parser, as I was driving to work today I thought, if I hadn't had unformat() what would I have used? The obvious answer was multi_replace() so when I got home I tried it, new solution was .5k smaller, so!

shrewd sentinel
#

watch day 4 be really ward

bronze wadi
#

What's this channel for?

#

I'm getting something wrong for Day 2, part 2, but I don't know where to ask

dusk crow
#

Do the puzzles get harder as we go

earnest forge
#

Good luck everyone

dusk crow
covert arrow
#

GLHF!

covert arrow
shut trellisBOT
dusk crow
#

god luck

compact wasp
#

21/11

onyx flicker
#

no ||regex|| today 😔

compact wasp
onyx flicker
#

mb

long egret
#

word search is crazy

tiny tendon
#

Yall the answer should be the steps right?

karmic sequoia
#

it physically pained me looking at the question and knowing i cant do it because i have to learn about the quadratci formula

#

rip

buoyant hatch
#

im not doing it cuz im studying for exams but my first thought it to just treat it as an array and transform it into a reverse list a vertical list and 45 degree list

#

and then just search as normal

devout tusk
#

49/38!
I keep improving!

karmic sequoia
#

go to square
is X?
check diagonals, up, down, left, right

buoyant hatch
#

ig yea

compact wasp
tiny tendon
buoyant hatch
#

thats ho i solve them irl too lol

#

just go to all occurences of x and check those conditions

compact wasp
#

your placements are insane

tiny tendon
compact wasp
#

i'm so lucky i had grid traversal stuff in my template 😭

buoyant hatch
#

mfw template? 😭 ranked aoc i never actually participate cuz its always around exams

dusk crow
#

people are on part 2?

tiny tendon
dusk crow
#

im still thinking of soluations

outer hazel
#

is answer 18? why its say its not currect

compact wasp
#

💀

normal umbra
#

guys what does overlapping worsds mean?

dusk crow
normal umbra
#

i get the other directions

#

but what does overlapping mean

#

for day4

buoyant hatch
devout tusk
dusk crow
tiny tendon
compact wasp
#

same

#

how am i #12 💀

#

i literally failed first 2 days

tiny tendon
compact wasp
#

what are ppl doing

devout tusk
#

i'm #46

devout tusk
#

noice!

compact wasp
#

sheesh

#

epic username

earnest forge
#

That went badly

compact wasp
#

totally not the anon one

devout tusk
#

I gotta make a username nmh

compact wasp
#

whatever you say RangerMcSexy

buoyant hatch
#

is that it

#

it says 46 for me

earnest forge
#

(I'd guess)

devout tusk
#

how do you do that btw?

dusk crow
#

yay i solved the first one

tiny tendon
obsidian shell
compact wasp
obsidian shell
#

what is a yoon

#

what is a martial

compact wasp
#

korean president

obsidian shell
#

what is a law lore

dusk crow
obsidian shell
#

oh wait

#

OH WAIT

#

THAT INCIDENT

#

bruhhhh

compact wasp
#

lmao

covert arrow
#

I spent longer than I'd like to admit realizing str.find is not str.count

#

🥴

compact wasp
#

🥴

earnest forge
tiny tendon
#

The answer is 18 why is it saying incorrect?

compact wasp
#

💀

earnest forge
#

(if you want to tie a different account you can make another account with a different login method and then transfer to that)

magic oxide
devout tusk
compact wasp
earnest forge
dusk crow
paper folio
#

oh man I missed the time, lost track of time working

devout tusk
covert arrow
compact wasp
#

both parts

devout tusk
tiny tendon
#

Ohhhh

tiny tendon
compact wasp
earnest forge
#

Yeah, about ||2.5k and 2k|| respectively

compact wasp
magic oxide
#

i lost like a solid 3 minutes because ||i was matching against xmas and not XMAS||

compact wasp
#

😂

#

happens

devout tusk
compact wasp
devout tusk
magic oxide
#

||2.4 and 1.8|| for me

covert arrow
#

||2.5 1.9|| for me

feral hazel
buoyant hatch
#

@onyx flicker holy freaking shit the thing in ur bio is insane

devout tusk
#

are yalls ||grids 140*140|| too?

compact wasp
tiny tendon
#

Okok

rancid creek
normal umbra
#

ah

#

well i've solved it by now

#

but thanks!

onyx flicker
hollow wharf
#

i just looked at it...

#

i think i found my 13th reason

grand perch
#

todays aoc is hard

native oak
#

hi

#

i have a question

#

do people only upload a solution to their github after the whole day is over

#

cuz i only did day1 problem1 and i uploaded

#

??

shy lintel
#

Hi can anyone help me with deepface lab please?

cyan sleet
#

jfc, read channel names and channel descriptions

native oak
#

guys someone answer me ple

#

pleas

cyan sleet
floral hare
#

is it just me or is today's Part 2 easier than part 1?

tender swallow
native oak
#

okay, so like i should upload it only after i do both problems right?

tender swallow
#

if you're not going to affect the leaderboard it doesn't matter what you do

native oak
#

or do people upload code for the first problem then another for the second problem

#

okay

cyan sleet
hollow wharf
#

Doesn't matter, just upload once it won't affect the global leaderboard anymore

#

And don't upload your personal input with the code

native oak
#

okay thanks guys

native oak
#

wdym*? i dont get u

hollow wharf
native oak
#

ohh

tender swallow
#

you're not supposed to upload the full input file you download

hollow wharf
#

If you're posting a code repository somewhere, please don't include parts of Advent of Code like the puzzle text or your inputs.

native oak
#

yes yes im too lazy to even do that

sullen adder
#

i must have been the only person who couldn't figure out how to search through a string in eight directions, huh? 🥲

cyan sleet
#

my awk solution is pretty terrible

#

if you munge the input enough you only ever need to search in one direction 🙃

native oak
#

someone help me w my aoc

#

🙏

compact wasp
magic oxide
#

says 21/11

mossy basin
#

just woke up, let's go

silent forge
#

where can i find python solution of someone top in the leaderboard? I'd like to comapre, why it took me ages to do the code. 😄

hollow wharf
#

Not everyone shares their code

#

Some have their GitHub linked, so you can check it out if they have a repo - sometimes they publish after the event, so wait for 2025. And yeah, some never share their code

#

Not everyone may want their techniques or helper functions to be known 🤷‍♂️

limpid grail
#

my ranking finna drop

#

ill only be doing AOC in the night tonight 😔

hollow wharf
limpid grail
hollow wharf
limpid grail
#

the green ones link to their github

#

current top is secemp9

#

but yeah their AOC doens't seem to be on it

#

but the top 100 are really good, so im sure you'll find SOMEONE

#

maybe even a python user

#

actually, probably a python user

hollow wharf
hollow wharf
#

Well until you compare someone of the solutions and the top leaderboard..

#

Like the post in the solutions was after 16 ish minutes

#

Top ones finished after 6 ish minutes

#

yeah today wasnt a good day apparently for python community

#

past days there were solutions after like 4mins but problems were easier tho

magic oxide
#

there were a few people here who were finished way before i was

hollow wharf
#

Yeah, so good luck comparing the solutions and when they actually finished to know if they're amongst the first ones

#

someone posting in 1 hour may have been the first one to solve, hence much faster to get the top leaderboard and look for their github

glad cairn
#

💀 ** **

oak flax
#

I finally did it py_strong

elder quest
#

Urgh

#

once again I find myself with correct test cases but an invalid answer

ripe meteor
#

i hate grid problems

elder quest
#

I think this is my least favorite part about AoC

#

In the real world, I'd know which output is incorrect

slender ravine
gritty gyro
#

shiit you know it's gonna be annoying when you see this

calm cedar
#

I felt the same when I saw it, but it turned out to be not so bad

gritty gyro
#

whoa

#

guys

#

i never knew

#

that

#

python has

#
yield from <iterator>
brisk briar
ripe meteor
#

im getting someone elses answer with my shit code 💀

glad cairn
#

it's pretty easy actually

gritty gyro
#

i actually wrote a really nice solution for part 1

#

i'm proud of it

#

but now i have to scrap all that for part 2

#

wait, aint no way

#

all i have to do is remove some code and i'll have part 2

#

OMG

#

I"M SO SKIBIDI

obsidian mirage
#

is that not the same as raise e?

brisk briar
#

similar to an extent where I've only ever seen it used once

thorn inlet
ripe meteor
#

i tried to be smart

#

aoc was smarter

#

surprisingly not an off by one issue

trail remnant
#

part 2 was much easier than part 1

thick bluff
#

I had so much issue in part 1, because I wasn't able to visualize the directions properly, part 2 was fairly simpler once I did part 1.

leaden tartan
thick bluff
leaden tartan
#

But I really enjoyed todays

thick bluff
#

Yup ! It finally taught me, how to do grid based calculations, made a quick util for it, so I never have to do it again XD

leaden tartan
thick bluff
karmic sequoia
#

welp i wasnt able to do today's aoc because no time

ripe meteor
#

Its the middle of the day

#

Next puzzle in 15h

karmic sequoia
#

i have curfew 10 minutes ago

#

oh and school tmrw

ripe meteor
#

🤨

snow ice
#

Ugh, one of those days misreading. I interpreted any direction to be a step in any direction and found all the 'XMAS' strings boggle style. Both harder and wrong.

civic wyvern
#
def part_two() -> int:
    tinkered_input = [list(x) for x in input.split('\n')]
    counter = 0
    for line_no, line in enumerate(tinkered_input):
        for x,y in enumerate(line):
            try:
                available_ = ('MAS', 'SAM')
                possibilites = [
                    tinkered_input[line_no - 1][x+1] + y + tinkered_input[line_no + 1][x-1], 
                    tinkered_input[line_no + 1][x+1] + y + tinkered_input[line_no - 1][x-1]
                ]
                
                if possibilites[0] in available_ and possibilites[1] in available_:
                    counter += 1
            except IndexError:
                ...
    return counter

print(part_two())

For some reason, i keep getting 3 more than the actual answer. If someone could point out where I went wrong, would really appreciate it. Thanks

short sedge
atomic cairn
#

You might have to log in first

snow ice
trail remnant
#

I don't think so

#

Also that would give more positives and he says he has too many already

trail remnant
#

You shouldn't allow it to wrap around

#

surely your IndexError catches that

snow ice
trail remnant
civic wyvern
trail remnant
#

I don't know what you mean by "extends the X to the last line" but nevermind

hollow wharf
grand perch
#

I just can't find the error in the provided code snippet

stable olive
#

dude im like 4 days late

limpid grail
short sedge
#

same bro

#

@stable olive

short sedge
stable olive
trail remnant
#

I had that on day 2

minor cave
#

We keep this channel strictly spoiler free. If you're looking for help, open a thread in #aoc-solution-hints

minor cave
#

Thanks, appreciate it!

hollow wharf
grand perch
#

my solution seems to have spilled @hollow wharf

grand perch
#

How do I prevent numpy from jumping from the left to the right side when i check for a negative value and instead just return none or something in a 2d array?

#

With the command print(array[-1,5]) for example

terse comet
#

for returning None: manually check if it's within the bounds
for looping around in a 2d array: view(-1) before indexing might work
not sure if I get the second part

grand perch
#

How would I integrate that in this function for example?:

def check_location(check_array, check_x, check_y):
try:
return check_array[check_y, check_x]
except:
return None

terse comet
#
x_size, y_size = check_array.dimensions
if (not (0 <= check_x < x_size)) or (not (0 <= check_y < y_size)):
    return None
grand perch
#

it's working with the example but not the real input

unique osprey
# grand perch it's working with the example but not the real input

I have 2 more sets of example data:

XMASQQSAMX
MMQQQQQQMM
AQAQQQQAQA
SQQSQQSQQS
QQQQQQQQQQ
QQQQQQQQQQ
SQQSQQSQQS
AQAQQQQAQA
MMQQQQQQMM
XMASQQSAMX

and

SAMXQQXMAS
AAQQQQQQAA
MQMQQQQMQM
XQQXQQXQQX
QQQQQQQQQQ
QQQQQQQQQQ
XQQXQQXQQX
MQMQQQQMQM
AAQQQQQQAA
SAMXQQXMAS

Both should yeild a count of 12 for part 1

#

It checks all edge cases at the corners

gritty cedar
#

still confused about part 2

#

I might be misinterpreting part 2

#

Oh nevermind, I just had to change the -3 to -2

grand perch
grand perch
unique osprey
#

nope

#

iirc that's a security risk

grand perch
#

i mean to input it into my script

grand perch
ivory venture
#

Please check the channel description and don't post solutions here

warm flicker
#

Can I still join the game if I hadnt done anything yet?

distant igloo
#

Of course

#

You can even do previous years if you want

#

The only thing that is impossible at this point is to be on the leaderboard of previous days

warm flicker
#

Okay

#

Thank for help

hollow wharf
#

interesting

paper folio
#

wait, you are telling me input is different for different individuals?

weary topaz
#

ikr, I thought it was the same for everyone too ("too" because I'm assuming your question is not sarcastic)

low condor
#

there are a handful of different inputs. It's to help prevent someone ripping the entire site off

#

for that reason Eric doesn't want you to upload the inputs to Github

#

It's official - my new hated language is Smalltalk. I am giving up on GNU Smalltalk and going to try Squeak tomorrow

marsh currentBOT
#

:incoming_envelope: :ok_hand: applied timeout to @zenith ferry until <t:1733359041:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

sullen adder
#

i hope today's AoC is easier than the previous one 🙏

terse comet
#

It typically increases in difficulty every day, with the exception of weekends being slightly tougher than weekdays and the last day only having one part

in particular, it ramps up a lot in the middle of the month (~14ish)

mossy basin
#

17-23 will test your resolve

paper folio
atomic cairn
sullen adder
paper folio
#

Can I copy/redistribute part of Advent of Code? Please don't. Advent of Code is free to use, not free to copy. If you're posting a code repository somewhere, please don't include parts of Advent of Code like the puzzle text or your inputs. If you're making a website, please don't make it look like Advent of Code or name it something similar.

well oops

#

gotta go and scrape off my commits

paper folio
drifting rain
#

Whats the advent of code?

sullen adder
#

but still a good idea to respect the AoC devs wishes

atomic cairn
sullen adder
# drifting rain Whats the advent of code?

it is a yearly event, where a new two-part programming puzzle is released every day for 25 days. good opportunity to improve problem solving skills or learn a new programming language 👍

neon ore
#

guys

#

who knows python codes

sullen adder
neon ore
#

so

#

i gt code

#

and i wanna turn it into a bot

#

can sm1 help mew that

neon ore
#

bc its a gen

sullen adder
neon ore
#

i have

sullen adder
neon ore
#

wry can u answer my tiket

#

its in python-help

drifting rain
neon ore
#

can sm1 help me w python code idk how to use it

sullen adder
drifting rain
#

Wait so for the answer do I paste my code orrrr

neon ore
#

@sullen adder look at my thing

drifting rain
pure sphinx
#

what does day 4 mean by "or even overlapping other words."

atomic cairn
neon ore
#

can some1 help me in my help ticket

pure sphinx
#

can the diagonal be backwards?

paper folio
#

Yes

pure sphinx
long egret
#

its not that bad

paper folio
#

It's actually not bad

#

yeah

sullen adder
#

eight directions :'-)

pure sphinx
#

im doing diagonal check first

atomic cairn
pure sphinx
rancid creek
atomic cairn
pure sphinx
#

ok so im getting all the diagonals

#

(for backward)

rancid creek
drifting rain
pure sphinx
#

i have got all the diagonals

#

now

#

which direction is next

rancid creek
pure sphinx
#

ima do vertical

drifting rain
#

alr ill do this problom after I do my spring lab

pure sphinx
#

im almost at 1000

rancid creek
#

no ||spoilers|| 🙂

pure sphinx
#

now time for horizontal

drifting rain
rancid creek
pure sphinx
#

aww its not right 😦

#

this is soooooooooooooooooo hard

#

bruh its SOOOOOOOOOOO HARD

lusty rover
paper folio
#

Watching this while waiting for day5 https://www.youtube.com/watch?v=_oNOTknRTSU

Eric Wastl provides an intriguing backstage pass to the world of 'Advent of Code'. Offering a glimpse into the creation, challenges, and intricacies of this coding phenomenon, Wastl shares the stories and decisions that shape each puzzle.
For those eager to uncover more behind-the-scenes magic of coding challenges, https://www.tretton37.com/ awa...

▶ Play video
warm heron
#

Is it possible to get the stars after 00:00 of next day?

sullen adder
#

you can get the stars any time after the puzzle is released

warm heron
#

Okay, thankyou

#

Day 4 seems disproportionately harder lol. I have a way out in mind, but I wanted to take some time to go about it

lapis pilot
#

is it just me or are the first four days this year like 100x easier than last year?

paper folio
#

this is my first year but does it feel that way for you?

lapis pilot
#

last year was so difficult right out of the gate

#

day 5 ratcheted way up last year though… so i’m a bit concerned about tonight

peak dock
#

maybe youve become better /j