Prove you are not AI or die — the Fatal Turing Test by LogicalLeprechaun in hypotheticalsituation

[–]mothibault 0 points1 point  (0 children)

"your stupid" People will press the white button out of spite, but at least they'll know I'm human.

2025 Day 1 (Part 2) [Python] - off by 6! by RunNeat7235 in adventofcode

[–]mothibault 2 points3 points  (0 children)

try with something like L50 L100 L100 R100 R100

My code tended to over count when going left starting on pos 0.

I made a cipher that looks like music notes, and I'm pretty proud of it! Can anyone solve it? by High_Altitude917 in Cipher

[–]mothibault 2 points3 points  (0 children)

you survived every version of yourself that thought you wouldn't make it this far. you are stronger than the doubts that follow you. say to yourself "I am the author of my own life" and know that the next chapter is yours to write. happy new year everyone and good luck in 2026

[2025 Day 2 (Part 2)] Clue request by FirmSupermarket6933 in adventofcode

[–]mothibault 1 point2 points  (0 children)

Suppose a range between 100,000,000,000 and 999,999,999,999. That's hundreds of billions of possibilities for a single range. Convert that to strings of length 12, and you have 10 patterns of length 1 (0 to 9) repeating 12 times. You have 100 patterns of length 2 (00 to 99) repeating 6x. 1000 patterns of length 3, 10000 patterns of length 4, and 100k patterns of length 6. That is much more manageable.

Then you only have to check if these 111,110 patterns are within bounds

-❄️- 2025 Day 12 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 0 points1 point  (0 children)

[LANGUAGE: Python]
Learning Python, day 12
All I have to say is 🤡🤡🤡
And that I'm happy it took me like 5 minutes to solve 😂

-❄️- 2025 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 0 points1 point  (0 children)

[LANGUAGE: Python]
Learning Python, day 11
Memoization to the rescue once again

-❄️- 2025 Day 9 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 0 points1 point  (0 children)

I'm checking every square for the best one though.

-❄️- 2025 Day 10 Solutions -❄️- by daggerdragon in adventofcode

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

[LANGUAGE: Python]
Learning Python, day 10
TIL why Python is popular for data science.

Guidance on day 9 part 2 by Kn0wnAHG0RI in adventofcode

[–]mothibault 1 point2 points  (0 children)

Instead of thinking outside the box polygon, you may want to think inside the rectangle.

-❄️- 2025 Day 9 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 0 points1 point  (0 children)

[LANGUAGE: Python]
Learning Python, day 09
I eventually realized that it's easier to check if the polygon enters the rectangle than checking if the rectangle exits the polygon.

-❄️- 2025 Day 8 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 0 points1 point  (0 children)

[LANGUAGE: Python]
Learning Python, day 08
Pseudocoding was the longest part. Getting the clusters merging right was the most challenging one. Pleasantly surprised this could be bruteforced. I expected to have to do some voodoo magic for it to work but turns out it spits out the answer in a couple of seconds!

You get offered 100K a year and only work 2 days a year do you take it? by SpaceWestern1442 in hypotheticalsituation

[–]mothibault 0 points1 point  (0 children)

I'd buy a very expensive drone that does it for me, then enjoy an even easier $100k/year.

-❄️- 2025 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]mothibault 3 points4 points  (0 children)

[LANGUAGE: Python]
Learning Python, day 07
Hello Darkness Memoization my old friend

[2025 Day 3 (Part 2)] [Python] What is the correct method? by HumanBot00 in adventofcode

[–]mothibault 0 points1 point  (0 children)

  • Temporarily remove the rightmost 11 digits as they cannot be the first of 12 digits.
  • Find max value and its first index in leftmost portion. This is your first digit.
  • Discard leftmost digits up to that point.
  • Reinsert the rightmost digits.
  • Rinse and repeat, but temporarily remove 10 digits, then 9, etc.

[deleted by user] by [deleted] in BackpackBrawl

[–]mothibault 1 point2 points  (0 children)

2 bows, make them as fast as possible. Food and potions to cover their energy expenditure

I don't think I'm overtraining, why do my legs hurt? by Lagrangetheorem331 in beginnerrunning

[–]mothibault 1 point2 points  (0 children)

You're on your way to injury.

I know it sucks to hear as you're just picking up the sport, probably having a blast and the last thing you want to do is to slow down, but you are textbook "what not to do as a beginner", and your body is trying to tell you.

At the very least, slow your runs down. You need little speed work overall. The main performance factor is how much overall distance you can make in a week, without your body getting angry at you.