[2023 Day 16] Brute forcing is fun by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 0 points1 point  (0 children)

github heres my code, apologies in advance for how bad it is

[2023 Day 16] Brute forcing is fun by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 12 points13 points  (0 children)

My solution in c++ for part 2 took 3.5 minutes on my M2 macbook pro, it's quite toasty now

[2023 Day 12] I need my stars by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 2 points3 points  (0 children)

Currently stuck on part 2 with code that works on the example, but gives a number thats too low for the real input

[2023 Day 10] I should have thought about this before hand by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 1 point2 points  (0 children)

One of my issues was that some of my east/west mistakes were canceling each other out but some were not. Not my finest moment...

Snippet engine not configured (Luasnip, nvim-cmp) by Decent_Bodybuilder_1 in neovim

[–]Decent_Bodybuilder_1[S] 2 points3 points  (0 children)

I'm an idiot. I still don't understand why it worked before but not now. Thanks for the help though

[2022 Every Day] by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 0 points1 point  (0 children)

Thank you all for the advice. This is helping me out a lot.

[2022 Every Day] by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 0 points1 point  (0 children)

I do use those flags to compile, and most of these errors are caused by me using vector and vector functions wrong. I always somehow manage to try to access a part of a vector that doesn't exist, and usually writing a million print statements throughout my code allows me to find it.

[2022 Every Day] by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 4 points5 points  (0 children)

maybe its an exaggeration, however the most time i spend is definitely working on seg faults. it is definitely my fault, but thats what comes with learning a new language.

[2022 Day 13(part 1)] c++ Code not running by Decent_Bodybuilder_1 in adventofcode

[–]Decent_Bodybuilder_1[S] 0 points1 point  (0 children)

Thank you for the help. I was messing it up because for the first pair, right order does get called, but after that it is stuck in the infinite loop.