[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


Less than 3 months away. Are we ready bros?
>>
>advent of cringe
>>
>>106567573
nocoders need not apply.
>>
wagie above me
>>
wasn't the last one supposed to be the final one because muh AI?
>>
>>106567610
wtf? this better be cap.
>>
File: starving cade goes shaa.jpg (339 KB, 1100x700)
339 KB
339 KB JPG
this shit hasn't been fun for almost as long as it's been around.

Before AI, you would have high-strung retards on adderall basically frying their brains hyper-optimizing for the niche application of solving programming puzzles in record time, streaming themselves doing it, literally anything it took to get on the top 100 leaderboard so they could link their githubs because people were being hired off the leaderboards and so it became a desperate race to the bottom, nobody was doing it for fun anymore, long-time users started to drop out after they started re-using puzzles and obfuscating them by making the prompts confusing as fuck, the difficulty ramped up in interpreting what was being asked rather than knowing what elementary data structure/algorithm they wanted you to implement, it became a high strung humiliation ritual.
>>
>>106567681
this, I just play Tetris instead. Only brown people care about this shit
>>
>>106567681
It's literally the only time /g/ actually posts code though and we can all learn from each other.
>>
>>106567681
this. /g/ used to paint AoC as this supposedly comfy event, but in reality it was just tiresome grind, no different than doing actual work.
>>
why are there so many filtered cucks posting in my thread?!
do most AoC enjoyers just not browse /g/ anymore other than in December?
>>
File: nobrain.png (4 KB, 505x572)
4 KB
4 KB PNG
>>106567573
>>106567592
>>106567681
>>106567691
>>
>>106567893
post 40 lines time
>>
>>106567560
>Less than 3 months away
fuck time flies
>>
>>106567768
You are bragging about solving rote memorization puzzles that can literally be automated by a pattern matching software. Woah you can remember the right competitive programming algorithm to use to solve some obscure niche optimization task, cool story bro.
>>
i made it to week 2 last time i want to finish the month this time. how should i be prepping
>>
File: retard.jpg (46 KB, 698x500)
46 KB
46 KB JPG
>>106567994
>>
>>106568004
A good helper library to cut down verbosity, and solve previous years. With good libraries parsing is mostly a one liner in C++.
>>
>>106567560
Another year of me getting filtered by dynamic programming
>>
>>106568027
>replying with jaks in 2025
>>
>>106568059
you gotta practice. you just have to think about what you are trying to solve.
there was some hn post https://buttondown.com/hillelwayne/archive/many-hard-leetcode-problems-are-easy-constraint/ that talked about stuff like change-making algo.
I was taught DP by first thinking of problems from a greedy / brute force standpoint then think about what you're trying to actually solve. change making is kind of simple, good way to start learning. i believe the last year (2024) had a few DP problems .

2024-21 is infamous.
>>
Top 10 on /g/ board last year, will have to skip this year because coding late at night with an almost 1 year old baby is not an option anymore
>>
No. Still not ready.
>>
>>106567610
the source for that is just a bunch of screeching autists on /g/ and leddit, and parrots like you

>>106567624
until eric says so, just assume nothing is happening, as per usual
>>
Advent of same problems every year
>>
/aocg/ memes ranked by retardedness:
1. unwashed ass
2. showtime cancer music
3. FUCK
4. the dog fucker namefag
5. retards not being able to read and then blaming eric
6. retards coming into the threads and LARPing as non-neets who are too busy getting paid 100 bucks / hour to waste their time doing AoC
7. retards claiming that you aren't filtered if you've spent more than 1 hour on a problem or if you've looked at other solutions
8. code screenshots with tranime background
9. big boys that change the rules of the problem
10. code screenshots made with carbon without disabling window controls
11. calendar
12. cniles posting their shit code with fixed sized arrays, integer overflows, etc.
13. quirky solutions (e.g. excel)
>>
>>106571576
now name the top 10 best parts of aoc
>>
>>106571581
Those were the best parts of AoC.
>>
>>106571576
>retards claiming that you aren't filtered if you've spent more than 1 hour on a problem or if you've looked at other solutions
but this is true, getting filtered is giving up
>>
FUCK advent of code it takes way too much damn time
>>
>>106571992
skill issue
>>
>>106571992
skill issue
>>
>>106571992
unskilled issue
>>
>>106567560
Christmas themed leetcode, no thanks
>>
>>106571992
I'm going to do the easy and cool ones but skip the ones that takes too much time. don't care, no shame
>>
>>106567560
I'm not ready. I told myself I would use free time to catch up on years I wasn't present. Instead I have only done five days of the first year.
>>
fuck eric
>>
>advent of parsing and dynamic programming
>>
>>106572092
same
>>
The bigbrain move is write the functions that solve the problem, then go to your llm of choice and type the following:
generate a function in <your programming language> that takes a filename as input.
The file consists of lines that contain <>. Parse these value. For each line, call <function you wrote yourself>. This functions returns a <>. Sum all these values and return the result.

It's a better way of using an llm than copy pasting the entire problem and getting a result, or not.
>>
>>106567560
I am going with JavaScript, first time Advent of Code for me, what am I in for?
I wonder how they are going to handle all the AI slop in the leaderboards
>>
File: img-2025-09-13-11-33-14.png (1.11 MB, 6016x2000)
1.11 MB
1.11 MB PNG
>>106572848
>I wonder how they are going to handle all the AI slop in the leaderboards
they say "please don't do this"
>>
>>106572848
Copy paste tricks (hidden characters) or maybe using some elf shittery like "One elf wants you to give a wrong answer". Or better yet just disable global leaderboards cuz they are gay.
>>
Advent of parsing. I did it last year and it was not fun at all. You would better dev a real app instead.
>>
>>106572860
>2015
>day 1
>3h 6m 16s
what happened
>>
>>106572913
>day 1 of first year
>what happened
hold on, I'm gonna find someone who has 180IQ and ask him for this question can't be answered by mere mortals.
>>
File: 1756521536801837.png (509 KB, 537x487)
509 KB
509 KB PNG
>>106572878
the evil elves again
>>
>>106572919
you're the low iq faggot because even eric said when before was making AOC and thinking about it that he thought the difficulty should ramp up
>>
File: 20241225_193116108.webm (3.82 MB, 640x360)
3.82 MB
3.82 MB WEBM
I should focus on setting up the result updater for the VPU1 and come back to trying to get controller reading working on hardware later, or else I might run out of time before AoC starts.
>>
>>106573035
kindly refer to #13 of the authoritative "/aocg/ memes ranked by retardedness" list (>>106571576)
>>
File: 20241217_225906804_1.webm (3.97 MB, 640x360)
3.97 MB
3.97 MB WEBM
>>106573053
Not ranked high enough.
>>
>>106573071
there are no silver stars btw, the stars are all gold
>>
File: d15.webm (2.78 MB, 400x200)
2.78 MB
2.78 MB WEBM
Visualizations are also fun.
>>
>>106573078
I renamed them from "Part 1" and "Part 2" especially to trigger you.
>>
>>106573071
good thing this nigga is still around
>>
File: 1554100216329.jpg (135 KB, 1024x768)
135 KB
135 KB JPG
>tfw last year got filtered by day 11 part 2
https://adventofcode.com/2024/day/11

>2022 got filtered by day 11 part 2
https://adventofcode.com/2022/day/11

>2021 git filtered by day 6 part 2
https://adventofcode.com/2021/day/6

and all of these puzzles I got filtered by seem to follow the same pattern
>part 1: do a for loop 10000 times
>part 2: ok now do a for loop 10 quadrillion times ;^) (needs a supercomputer and 10 years to compute)
how do people even solve these?
am I just that dumb?
>>
>>106567994
Jeets are only good at memorization. This is the only time they can win anything. Don't take this away from them.
>>
>>106567994
>>106573232
>memorization
it's called memoization, retards
>>
>>106573212
2024 day 11 wasn't even a "now do this 11 billion times".
The answer for it was buckets. Instead of keeping track of each stone, you keep track of how many stones marked with X number.
>>
>>106573212
>last year got filtered by day 11 part 2
that was the last day I had fun solving
then got filtered by day 17
#include <stdio.h>

#define N 0x2000
typedef struct {
long long k, v;
} tbl[N];

static long long *
cell(tbl t, long long k) {
unsigned i;
for (i = k; i %= N, t[i].v && t[i].k != k; i++);
t[i].k = k;
return &t[i].v;
}

static long long
sum(const tbl t) {
long long x;
unsigned i;
x = 0;
for (i = 0; i < N; i++)
x += t[i].v;
return x;
}

static void
blink(const tbl a, tbl b) {
int i;
long long d;
memset(b, 0, sizeof (tbl));
for (i = 0; i < N; i++)
if (a[i].k == 0) {
*cell(b, 1) += a[i].v;
}
else {
for (d = 10; d <= a[i].k/d; d *= 10);
if (a[i].k/d >= d/10) {
*cell(b, a[i].k/d) += a[i].v;
*cell(b, a[i].k%d) += a[i].v;
}
else {
*cell(b, a[i].k*2024) += a[i].v;
}
}
}

int
main(void) {
tbl a[2];
int x, i;
memset(a, 0, sizeof a);
do {
scanf("%d", &x);
*cell(a[0], x) = 1;
}
while (getchar() != '\n');
for (i = 0; i < 75; i++) {
if (i == 25)
printf("%lld\n", sum(a[1]));
blink(a[i%2 != 0], a[i%2 == 0]);
}
printf("%lld\n", sum(a[1]));
}
>>
>>106572860
Honestly people say AI but 2024 was pretty easy.
>>
>>106573275
>2024 day 11 wasn't even a "now do this 11 billion times".
yes it was
par 2 was only about changing the loop count to a higher number
>>
>>106572860
>leaderboards
literally nobody cares about the leaderboard or ranking
you are supposed to have FUN doing the puzzles, not for a competition or a prize
>>
>>106567560
No way!
>>
>>106573298
It was 25 to 75.
>>
>>106572425
This
>>
>>106573304
The fun is shitposting after finishing the puzzles.
But the real question is, seeing last year was a 10th anniversary celebration and cakewalk, what is going to happen this year?
>>
File: lacrimafunny.png (193 KB, 583x562)
193 KB
193 KB PNG
advent of vibecode when?
>>
advent of reddit cringe
>>
>>106571992
>too much damn time
It takes like 5-15 minutes for most of the month
Reading the threads takes longer
>>
>>106573053
kindly go deepthroat some bleach
>>
I don't find it that fun
>>
>>106567560
I am so exxxciterinooo, I am unemplyed, living with parents and coding all morning brings joy to me. This shall be the best month this year.
>>
>>106573559
return to the same old same old
>>
Advent of coping midwits who get filtered almost immediately, while exclaiming all month that they just “do not have time for puzzles.”
>This isn’t real world programming
>Why would anyone need this?
>Y-y-ou guys are STILL doing these???
>Ughhh math, this is outrageous, it said programming!
>Just because I don’t know an algorithm doesn’t make me stupid!!!
>>
this year I may stick around for 3-5 days and then I am out. I am trash at algos, and wasting several hours on a solution doesn't feel rewarding to me.
>>
>>106576115
try to learn one new algo at least
>>
>>106576115
So you’ve had a year to learn basic bitch DP or recursion + memoization and you didn’t bother?
>>
>>106576157
yeah, all this has zero practical applications outside of cp and interviewing for fagman, so why bother?
>>
>>106576203
Webdev?
>>
>>106567560
>advent of troons
with all these troons getting fired since two days ago do you really think they'll have time to host this shit for disabled highschoolers?
burgers won't flip themselves
>>
>>106576247
The only troon involved in AOC is the reddit mod.
>>
>>106576247
they'll just apply for monthly welfare bux considering transsexualism is now considered a disorder in the states.
>>
>>106576445
oh god don't remind me..
>>
>>106567560
I thought Eric unalived the event.
>>
>>106576560
/g/ meme. Also it’s not dead, because as a Platinum donor, I’ve already had pre-release access to the first 12 questions.
>>
>>106577176
>Platinum donor
what the fuck has happened to the Internet
>>
>>106578508
Anon…
>>
File: 1742309636294676.png (3.35 MB, 3282x2475)
3.35 MB
3.35 MB PNG
>>106579338
post calendars
>>
>>106579460
Simpler times... How do we go back?
>>
>>106567560
I don't really care about leaderboards. I might just solve the old ones I didn't do just for the puzzle aspect
>>
File: 1730565082072180.png (2.24 MB, 10000x5000)
2.24 MB
2.24 MB PNG
>>106579590
2018 top
>>
File: 1743880548235713.png (2.9 MB, 10000x5000)
2.9 MB
2.9 MB PNG
>>106579730
>>106579590
2018 bottom
>>
File: idiomatictrash.jpg (280 KB, 800x1137)
280 KB
280 KB JPG
>>
File: pepe-disappointed.png (49 KB, 306x306)
49 KB
49 KB PNG
>>106567560
My finals are in december. Can't they change it to another month?
>>
File: calendar.jpg (3.92 MB, 7997x4450)
3.92 MB
3.92 MB JPG
>>106579460
>>
>>106580309
>idiomatic
>more than four levels of indentation
>wider than 80 characters
kek
>>
File: calendar_small.jpg (3.99 MB, 7907x5941)
3.99 MB
3.99 MB JPG
>>106579460
>>
File: 1757200146600906.png (2.86 MB, 4657x2499)
2.86 MB
2.86 MB PNG
>>106580309
>>106580361
>>106579733
have another, 2019 (v1)
>>
File: 1736341143959497.png (2.56 MB, 4657x2499)
2.56 MB
2.56 MB PNG
and 2019 (v2)
>>106580309
>>106580361
>>106579733
>>
File: 1757771607404.jpg (47 KB, 533x519)
47 KB
47 KB JPG
>>106567560
That is just a circle jerk for people with 135+ IQ to feel smug for a month.
>>
>>106580499
Low IQ detected.
>>
>>106580499
i'd have fun in isolation and without bragging to others
>>
>>106579590
>How do we go back
Eliminate everyone who joined AoC after 2017
>>
>>106580499
And that's a good thing
>>
>>106580353
>sticking with 80 chars in 2025 AD
lmao, ok gramps
>>
>>106581664
>2025 AD
our eyes haven't gotten any wider since 2025 BC
>>
>>106581739
Our screen resolutions have increased, though.
>>
>>106581739
but my monitor went from 14" in the 90s to 32" now. now I do 120 chars and still have plenty of screen space to spare. side-by-side diffs fit nicely too.
>>
>>106581811
>120 chars
blasphemy
I would understand 100 chars with shitty line noisy functional crap languages but that's just unacceptable
>>106581784
doesn't matter
you only see a small portion of it at once
>>
>>106581908
>you only see a small portion of it at once
Which now can hold more characters horizontally.
>>
>>106581960
irrelevant
you still see 80 horizontally arranged character columns
>>
>>106582258
Though at a higher resolution you can fit more columns into the same space those old 80 columns filled.
>>
>>106582258
>nigga thinks 80 is some magical number of columns an eye can see, regardless of diagonal and resolution
I hope you realize how retarded this sounds.
>>
Friendly reminder www.youtube.com/watch?v=DdmyUZCl75s
>>
>>106567681
>>106567691
>>106567739
this, it was fun the first time around but not its mainstream
>>
>>106573304
>literally nobody cares about the leaderboard or ranking
No one except all the people who hire people based on leaderboard ranking and people who use their rank to brag by linking it to their github.
>>
File: ps2countup.webm (1.02 MB, 1047x696)
1.02 MB
1.02 MB WEBM
I put together a test of actually counting and converting the result to output today.
Now I have to move this into VPU1, which is just going to fit in the 16kB of memory it has.
>>
>>106582446
I am not surprised. I remember reading some blog post by one of those guys, in which he said he doesn't even read problem descriptions - just skims through them in a couple of seconds, and bets on a solution to one of thousands problem he saw before. he accepts it may be a solution to a slightly different problem (therefore wrong), but he'll risk it to shave off a couple of seconds and top the leaderboard. this had really put things into perspective for me. a company with 100k employees probably might use one or two of them as sort of walking algo encyclopedias, but it won't give you a significant advantage in your day-to-day work.
>>
>>106580489
that's not the REAL v2
>>
>>106581559
No, I meant how do we go back in time to 2017.
>>
File: img_aoc12.png (892 KB, 1280x7633)
892 KB
892 KB PNG
>>106567560
I got filtered day 12 pt2 last year but I cant remember why
I also got filtered day 12 in 2023 because my bruteforce did not finish after running it for like 3-4 days straight

brainfrog and longcovid is a terrible drug I used to be so good at this omg
>>
File: solve.png (889 KB, 5546x4232)
889 KB
889 KB PNG
>>106582693
easiest day
>>
>>106582711
what the fuck is this
>>
>>106582732
idiomatic Rust solution for 2024-12
>>
>>106582693
That one was a bit annoying. I ended up just storing the lines making up the edges of the shapes and summing them. I don't think it's the most efficient, but it seemed to be reliable vs the other methods I tried.
>>
>>106582461
>all the people who hire people based on leaderboard ranking
this does not exist, don't kid yourself
>people who use their rank to brag by linking it to their github
irrelevant, absolutely nobody cares about that
>>
>>106582693
>day 12 pt2
#include <stdio.h>
#include <sys/mman.h>
#include <sys/stat.h>

#define NBOR(i, di) \
((i) + d[di][1]*w + d[di][0])
#define SAME(i, c) \
((i) >= 0 && (i) < n && (buf[i] == c || buf[i] == '\1'))

static char *buf;
static int n, w;
static int area, perimeter, sides;
static const int d[][2] = {
{0, 1}, {0, -1}, {1, 0}, {-1, 0},
};

static void
measure(int i) {
int c, di, j, k, l;
c = buf[i];
buf[i] = '\1';
for (di = 0; di < 4; di++) {
j = NBOR(i, di);
if (!SAME(j, c)) {
k = NBOR(i, (di+2)%4);
l = NBOR(k, di);
if (!SAME(k, c) || (SAME(k, c) && SAME(l, c)))
sides++;
perimeter++;
}
else if (buf[j] != '\1')
measure(j);
}
area++;
}

static void
clear(int i) {
int di, j;
buf[i] = '\0';
for (di = 0; di < 4; di++) {
j = NBOR(i, di);
if (SAME(j, '\1'))
clear(j);
}
}

int
main(void) {
int silver, gold;
struct stat s;
int i, j;
fstat(0, &s);
n = s.st_size;
buf = mmap(NULL, n, PROT_READ|PROT_WRITE, MAP_PRIVATE, 0, 0);
for (w = 0; buf[w++] != '\n'; );
silver = gold = 0;
for (i = 0; i < n; i++)
if (buf[i] && buf[i] != '\n') {
area = perimeter = sides = 0;
measure(i);
silver += area*perimeter;
gold += area*sides;
clear(i);
}
printf("%d\n%d\n", silver, gold);
}
>>
>>106582446
lmao
they should make a study for leetcode
>>
>>106571576
>4. the dog fucker namefag
>literally who
>giving attention to some attention whoring tranny
you just had to throw yourself in there, didn't you?
>>
>>106583154
newfag
>>
>>106583191
ahaha retard nobody cares about you



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.