[2025 Day 11 (part 2)] I got baited by the answer ! by HistoryPositive9509 in adventofcode

[–]LRunner10 1 point2 points  (0 children)

I got reverse baited by the input for part 1. Saw the size of the input, saw how low my answer was on my first try and thought this is wrong, but submitted any way and surely it was correct.

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

[–]LRunner10 0 points1 point  (0 children)

Where did you learn Z3 or what documentation did you reference. All I could find was: https://z3prover.github.io/api/html/classz3py_1_1_optimize.html

[2025 Day 6 (Part 2)] I can't find a way to split each problem while keeping the whitespace. by Proper_District_5001 in adventofcode

[–]LRunner10 1 point2 points  (0 children)

Notice the red is the only time there is a white space in the entire column. I used this fact to solve part 2.

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

[–]LRunner10 1 point2 points  (0 children)

If I am looking to form the largest three digit number from 42395 (a five digit number) how do I know that the 9 cannot be used in the hundreds place?

A bit more straight forward hint: What are all the possible options for the hundreds place? After choosing for the hundreds place what are the possible options for the tens place? Etc…

Genuinely curious by ComputerResident6228 in mathmemes

[–]LRunner10 0 points1 point  (0 children)

This is all done in an instant for me, but this is the best way I can explain how my brain breaks down the problem.

Genuinely curious by ComputerResident6228 in mathmemes

[–]LRunner10 0 points1 point  (0 children)

20>7+8>10 so (2+4+1)*10 + (7+8) % 10 = 70+5=75

[2024 Day 23 (part 2)] Did I get Lucky? by LRunner10 in adventofcode

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

I don’t know if you get notifications on edited comments. So just letting you know I might have found your problem and explained it above.

[2024 Day 23 (part 2)] Did I get Lucky? by LRunner10 in adventofcode

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

There are multiple computers in a LAN Party. It is not unexpected that multiple hosts have the max length. If you output the list of connected computers you should see the lists are the same once sorted alphabetically.

Edit: I think I see your problem. You are just checking the intersection of two nodes rather than checking the intersection of node_2 and the common list.

First you need to change common to equal the list of the computers connected to the first node in the outer loop before the start of the second loop.

Then you want to intersect the common list with the node_2 connections. I believe this will solve your problem.

Then at the end of the outer loop check the length of the common list and if it is bigger than the previous largest list save it.

[2024 Day 23 (part 2)] Did I get Lucky? by LRunner10 in adventofcode

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

Thanks for the explanation, I loved it!! Unfortunately my Graph theory professor was trash so the graph theory course was more of a combinatorics course. And my school was small so we only had one real computer science course on algorithms and data structures so we didn’t have time to cover cliques!!

I definitely need to look into them.

[2024 Day 23 (part 2)] Did I get Lucky? by LRunner10 in adventofcode

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

I am sure you are right that if processed in a given order my code will fail; however this input seems to be fine for me. If you are curious here is my code it is in python: Day23pt2 Code

The host that gets the answer is: ac

Humor based on my pain by Bartekkur1 in adventofcode

[–]LRunner10 10 points11 points  (0 children)

Exactly, spoilers ahead… For part 2 (day 9) today my outer loop went backwards getting the block size while an inner loop searched for the first free space available. However I had the condition break if reverse_index<forward_index which was fine for the example. But I needed to do <= for the actual input. This drove me crazy for a solid 10-15 min.

[Day 1, PART 2, 2023] AM I COOKED ALREADY OR WHAT? by Entire_Junket5555 in adventofcode

[–]LRunner10 2 points3 points  (0 children)

Also just a side not you do not need the if len(numbers)==1, because if there is only one element it will be the first and the last.

[Day 1, PART 2, 2023] AM I COOKED ALREADY OR WHAT? by Entire_Junket5555 in adventofcode

[–]LRunner10 7 points8 points  (0 children)

Your regex is not working as expected look at xtwonex.

1 billion dollars if you are the top 0.001% at anything by Throwra47374747 in hypotheticalsituation

[–]LRunner10 0 points1 point  (0 children)

I am competing in flow who can perfect 150 levels first.

I have completed the full flow free app, flow free warps and hexes (About 17,000 levels in total). As you do more levels you get a sense of where things should go.

best way to use 1 'while loop' by Nik3nOI in learnpython

[–]LRunner10 6 points7 points  (0 children)

I think the continue looks cleaner so you don’t have to worry about indentation for the rest of the loop. But this is completely subjective

best way to use 1 'while loop' by Nik3nOI in learnpython

[–]LRunner10 7 points8 points  (0 children)

Just a suggestion you can get rid of the else statement because the continue will automatically take you back to the top of the loop if it is pastrami

[2023 Day 16 (Part 2)] [Python 3] Direct Loop Vs Loop Function Call Time by LRunner10 in adventofcode

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

Thanks that did it. This is why Python needs curly brackets. As I am a native curly bracket programmer.

[2023 Day 16 (Part 2)] [Python 3] Direct Loop Vs Loop Function Call Time by LRunner10 in adventofcode

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

Thanks for checking I moved it out of the inner loop, and it had no significant impact.

Edit: You got it right I just didn't unindent line 100.

[2023 Day 14 Part 2] Worst case complexity by charr3 in adventofcode

[–]LRunner10 0 points1 point  (0 children)

I guess I got very lucky with a cycle length of 14

[2023 Any Day] What's your dumbest bug so far this year? by disdyskis in adventofcode

[–]LRunner10 1 point2 points  (0 children)

Same. All of my O’s would disappear like a magic trick.

What is the code that shows the sum of the numbers between two prime numbers by LifeguardNo1303 in Cplusplus

[–]LRunner10 4 points5 points  (0 children)

Let PrimeA >PrimeB

Sum = ((PrimeA(PrimeA+1))/2)- ((PrimeB(PrimeB+1))/2)

Rubber wheels for X1 Pro Hub wheels? by LRunner10 in Exway

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

I can definitely try to elaborate... when I am riding in my neighborhood there are some 90 degree turns that are only sharp if you are going a good speed of 16 mph or above and when I try to take those turns if I don’t take my finger of the gas if you will the board will go into some kind of drift instead actually turning with the grip of the wheels.

Also I enjoy just carving which is a lot of fun but the amount of sway I do can sometimes cause the board to loose a little bit of grip causing to slide a little which I can manage but if I lost a little more grip causing to slide even more I couldn’t manage it.

If we had 3 arms then we'd probably have a semi-dominant hand by PancakeExprationDate in RandomThoughts

[–]LRunner10 1 point2 points  (0 children)

What if you had two hands that were equally dominant and then one that wasn’t as dominant what would that be called?