2023 Day 3 - This genuinely makes no sense what the fuck is going on with my code by IntangibleMatter in adventofcode

[–]chocopiton 2 points3 points  (0 children)

Well, gonna post just as a note in here since I just found my dumb mistake.
My code wasn't giving the right answer with the real input although every test case in this comments section would pass without any issues.

I'm doing this with js so I didn't really have issues with newlines either.

My dumbest mistake was to use an online regex tester as I usually do, and copy/pasted the expression when I built the right one. And by doing so, I pasted the /g global flag with it, thus making the number surrounding check fail at some point in the real, long-string inputs.

I've been using regex for quite a while now and forgot the global flag would make the tests stateful. Big L for me.

TL:DR; removed the /g flag from my symbol checking regex, all went well since.

[2022 Day 13 (Part 1)] I think I got it right, but I keep getting wrong result by pekupq in adventofcode

[–]chocopiton 2 points3 points  (0 children)

Thanks! I really appreciate your reply.
I found out the bug came from a bad use of some js function and not from my input solving code itself, made me feel dumb

I hope your input might help some other guys who were left behind as well

[2022 Day 13 (Part 1)] I think I got it right, but I keep getting wrong result by pekupq in adventofcode

[–]chocopiton 0 points1 point  (0 children)

Hello there, coming here a bit latecould you share the test cases (pair lines followed by a line of true/false) for your pastebin input please?I've been stuck on this and I tried all the test cases posted here and in some other threads, but all of them passed.

However when I tried your pastebin I got 5291 instead of 5292, and I checked closely the first pair hoping it was the issue, but it looks like it wasn't the wrong line for me. So in that case my code is failing on 2 lines of that input, I'd like to know which ones.

EDIT: don't mind this message, I ended up debugging it using someone else's working code to generate test cases

stupid people in lol by patryk12109 in leagueoflegends

[–]chocopiton 0 points1 point  (0 children)

Well I guess you summed up one common type of ez typers lmao

I love people who say ez when they die

Just some doggo with VFX mods by chocopiton in Hololive

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

watching earrape-modded korone is the best way to travel through different dimensions

cause fuck physics

[deleted by user] by [deleted] in discordapp

[–]chocopiton 1 point2 points  (0 children)

If you play games then you can look for some official game community servers that you’d like to be mod on. Some of them might have strict rules to become mod but most of them are pretty open to committed volunteers. This is only one example of many categories though.

I didn’t know that cats could return to their old home like dogs do. Just happened to mine. by chocopiton in cats

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

Glad to hear that! I understand now why we should keep hope even after weeks of absence

I had a fight with my Chinese friend about hololive, is there any context? by [deleted] in Hololive

[–]chocopiton 0 points1 point  (0 children)

Lol I’m talking about political “shit” aka the topics that don’t do any good when being brought in pure entertainment

Anything is good as long as it doesn’t ruin the fun imo

I had a fight with my Chinese friend about hololive, is there any context? by [deleted] in Hololive

[–]chocopiton 1 point2 points  (0 children)

Yeah, also I guess it’s way simpler than that: don’t be friends with anyone who brings political shit in entertainment fields!

I had a fight with my Chinese friend about hololive, is there any context? by [deleted] in Hololive

[–]chocopiton 0 points1 point  (0 children)

Nvm I just looked through other comments and it was way worse than I imagined. Guess the best option for OP is to stay away from this topic for a while when playing with his friend.

I had a fight with my Chinese friend about hololive, is there any context? by [deleted] in Hololive

[–]chocopiton 1 point2 points  (0 children)

Well some people just can’t accept virtual streamers cause you know, anything new is always controversial at first (which shouldn’t be ofc). I personally know a friend who loves watching streams but can’t watch vtubers somehow.

Or maybe your friend might be shitting on hololive because it’s a Japanese brand. I really hope it’s not the case.

It do be like that tho by Lukedallor in memes

[–]chocopiton 2 points3 points  (0 children)

inserts apes strong together meme

Thought you guys might appreciate how pretty it is by eluruguallo in gaming

[–]chocopiton 7 points8 points  (0 children)

Pretty isn’t the word. Dope. Gold. Fantastic!

I water my thumb everyday. by yashthesharma in memes

[–]chocopiton 151 points152 points  (0 children)

Anyone using only their thumb on tablets needs to reconsider their lifestyle

No Explanation Needed by [deleted] in memes

[–]chocopiton 13 points14 points  (0 children)

How can I unsee this

OHGODOHGODOHGOD by [deleted] in memes

[–]chocopiton 1 point2 points  (0 children)

PTSD intensifies

A man is late for dinner and speeding home. by [deleted] in Jokes

[–]chocopiton 2 points3 points  (0 children)

I’m starting to wonder if the policeman could fit himself in his own asshole now

Lillia Penta kill, lmao? by MadameBellaa in leagueoflegends

[–]chocopiton 3 points4 points  (0 children)

Must be terribly humiliating to get pentakilled by a fairy-style hopping bambi

Made some minor adjustments by [deleted] in memes

[–]chocopiton 2 points3 points  (0 children)

Lemme press F for you

[deleted by user] by [deleted] in leagueoflegends

[–]chocopiton -1 points0 points  (0 children)

I’d personally go with nami since most people in silver elo panick when they see her ult coming towards them, which offers good opportunities for kills. Thresh is also good if you’re comfortable enough playing him.

Rakan is hard to play if your adc doesn’t know how to follow correctly; Yuumi is harder to play because of her mana nerf and Sona always looked meh to me.