disgustingcomment

u/disgustingcomment


r/adventofcode•

For part 1 I built a solution that created all permutations of the gear string, then used regex to find the ones with a match. However, this didn't scale to part 2, so I devised a new approach using recursion and the functools.cache function decorator. This code seems to work as expected for all the samples, but it's returning the wrong answer for part 2. Could someone take a peek and point me in the right direction? Here is the code: https://github.com/jturinetti/AdventOfCode_2023/blob/main/12/problem.py

Any help is appreciated!

23

r/adventofcode•

Hello advent of coders!

I am stuck on part 1 of Day 20 and could use another set of eyes. My code returns correct results for the 2 examples given in the problem, but the part 1 result is incorrect and I can't figure out where I'm going wrong. Could someone take a quick look and give me a hint to point me in the right direction? I've been struggling too long with this one -_-

Basic approach here: A queue of queues is maintained containing instructions. Each queue of instructions is fully processed before moving onto the next queue to preserve the correct order. Instructions are tuples in the following format: (from_key, to_key, pulse_value (0 or 1)).

Here is my code: https://github.c

11




r/AltJ•

Show details here.

General admission ticket. Doors open at 8, show starts at 9. You can buy the ticket and go your own way or stick around, make a friend, and watch it with me. Selling for $40 or best offer. First come first serve.

20

r/chicago•

If anyone's looking for something to do on Thursday night, come see a concert with me! I have an extra ticket to see Postmodern Jukebox at The Vic @ 8 PM. Ticket face value is $24. Lemme know if you're interested. PM me for details.

EDIT: Ticket claimed.

36


r/blackjack•

I've tried out the hi-lo counting strategy in casinos and at home a few times now but I rarely see the true count go beyond +1. Regardless, I end up winning a decent amount by varying my bet amount based on gut instinct and what cards I've seen in the several preceding hands.

I end up stopping keeping track of the count after 10 hands or so since I'm doing well anyway even though the count is negative. Anyone else have experiences similar to this? Any tips for an amateur counter that could improve the effectiveness of my technique?

813

r/RunnersInChicago•

Hey Chicago runners,

A few weeks ago I went for a run and started experiencing pain on the underside of my left foot. I basically had to cut my run short and run home in bursts, walking most of the way back. The next morning I found myself limping and could hardly stand on the affected foot let alone walk on it. In talking to some friends/family who also had this problem, it sounds like I developed plantar fasciitis. The pain has since subsided to the point where I can walk normally but when I put extra pressure on the ball of my foot I can still feel it. I haven't ran since this occurred and I'm worried that if I do, I'll end up limpin

210

r/chicago•

Hey Chicago!

A couple of my guitars need some minor repairs and I was wondering if anyone knew of a solid place to go to? I think Guitar Centers will perform repairs but let me know of any hole-in-the-wall places that have a good reputation for this sort of thing.

Issue #1: Martin electric acoustic; the jack on the underside is completely loose to the point where it's sliding out of the body

Issue #2: Ibanez electric; a screw fell out of the back of the neck near the headstock and I'm not sure what it's for ಠ_ಠ

I live up north in the Edgewater neighborhood but I'll travel within the city for quality service and a good deal.

05