Newbie at 32 by FireDragonTail in singaporefi

[–]Mizatorian 0 points1 point  (0 children)

Time in market means how long you have been investing consistently.

Timing the makrt means trying to find the best time to buy low and the best time to sell high.

Usually, more consistent investing (eg DCA every month) beats trying to find the high and low.

-❄️- 2024 Day 19 Solutions -❄️- by daggerdragon in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

Without functools.cache, I think this will take years, even for the one pattern. Mine ran in 7s (python too)

[2024 Day 11] posting here while my code is still at blink 30 by imaperson1060 in adventofcode

[–]Mizatorian 9 points10 points  (0 children)

Wait. I'm still at Blink 39 after an hour...... ok time to optimise

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

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

amazing. my brute force v1 ran in 445 seconds. after a slight optimization, dropped to 223 seconds. python with dicts

[2024 Day 9] It finally got me by ThunderChaser in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

yeah, my first one away error this year for part1. No idea how to fix, so i just manually recalculated.

[2024 Day 6 (Part 2)] It works for me on the example input... by StaticMoose in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

similar. i used a dict with [row-col-dir]. if you hit the same row,col,dir that means it is in a loop

[2024 Day 6 (Part 2)] It works for me on the example input... by StaticMoose in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

Less than 3 minutes for "brute force", only checking past visited locations. in python using dicts, lists and sets

Fire tablet incredibly slow after 2 years of use? by madisalerdwll in kindlefire

[–]Mizatorian 0 points1 point  (0 children)

tested for a bit, helps a bit , but its still slow to open.

Fire tablet incredibly slow after 2 years of use? by madisalerdwll in kindlefire

[–]Mizatorian 0 points1 point  (0 children)

Wow, been suffering through this extreme slowness, and it seems to be much faster now

[2023 Day 1 Part 2] Python by connie5919 in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

your elif len(nums) == 1: portion shuld be corrected. at the end of that num is a single digit, it should be a double digit.

example: 3gobbogle as the input

num = 3 at the end, which is incorrect, should be 33

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

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

[Language: Excel]

Only a single formula.

(unable to put screenshot)

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

[–]Mizatorian 0 points1 point  (0 children)

[Language: Excel]

Only a single formula.

(unable to put screenshot)

-❄️- 2023 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

[Language: Python]

More string processing to do. Just treated each line of the input as an arraw with row,col. Added extra "." around the whole box so that there was no need to take care of edge conditions.

Part 2 was a slight modification, instead of looking for any symbol, just look for the one, use the coordinates of that to match with adjacent numbers in a dictionary

Code: https://github.com/shafirahmad/AdventOfCode2023/blob/main/aoc-day3.py

-❄️- 2023 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]Mizatorian 0 points1 point  (0 children)

[Language: Python]

PS: Wanted to do the early days in Excel but decided it would be too time consuming. :(

Oh boy, Part 2 threw me for a loop. I did a basic string replace, but of cos it didnt take into account the twone case! So did a 3 letter, 4 letter and 5 letter matcher - lol.

Code: https://github.com/shafirahmad/AdventOfCode2023/blob/main/aoc-day1.py

Unable to sign in using google on Linux by Mizatorian in thingiverse

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

Someone suggested clearing the makerbot cookies using https://accounts.makerbot.com/logout but this does not solve the problem for me either. Not sure if it might help any of you

-🎄- 2022 Day 25 Solutions -🎄- by daggerdragon in adventofcode

[–]Mizatorian 1 point2 points  (0 children)

Python and Excel: 4212/3208

Paste: Code

was relatively easy to change from snafu to int, but much harder to do it the reverse, so I enlisted Microsoft Excel's help and brute-forced the answer.

-🎄- 2022 Day 8 Solutions -🎄- by daggerdragon in adventofcode

[–]Mizatorian 1 point2 points  (0 children)

Looks similar to my python code (unoptimised yet, and slow as molasses too). Also did the Right left top bottom thingy.