rDrama Advent of Code Day 6 Discussion Thread

Not sure where @RedNose is so I'll just post this. Post ur solutions below or whatever idc

Advent of Code is an annual Christmas themed coding challenge that runs from December 1st until christmas. Each day the coding problems get progressively harder. We have a leaderboard and pretty good turnout, so feel free to hop in at any time and show your stuff!

Whether you have a single line monstrosity or a beautiful phone book sized stack of OOP code, you can export it in a nice little image for sharing at https://carbon.vercel.app

What did you think about today's problem?

https://adventofcode.com/2023

Our Code is 2416137-393b284c (No need to share your profile, you have the option to join anonymously if you don't want us to see your github)

50
Jump in the discussion.

No email address required.

holy shit that's fast

i am running this on my phone but i doubt it'd get that fast even on a server

oh heck no

https://i.rdrama.net/images/17018683570944445.webp

what the actual frick I thought you've been literally shitposting

e: ran mine on a $6 server and script executed in 7s which is still pretty bad

ima start trying to do these in C soon as I get the file parsing figured out

Jump in the discussion.

No email address required.

>what the actual fuck I thought you've been literally shitposting

https://tryapl.org

You can run it yourself, just paste these lines 1 at a time:

s←⍎¨r←'7  15   30' '9  40  200'
q←{⌈1E¯10+¯2÷⍨(¯1×⍵)+(*∘0.5)(¯4×⍺)+⍵*2}
×/1+(⊃s)-2×(2∘⊃q¨⊃)s
t d←⍎¨~∘' '¨r ⋄ ⎕←t-1-⍨2×d q t
Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.