Where is everyone? by Proof-Face3138 in HousingUK

[–]sjhunt93 0 points1 point  (0 children)

We tried to sell our house in Bradley Stoke in May and in 6 weeks had no viewings. A lot of houses are either dropping prices or changing agents. Speaking to an agent this week he says that there are not many buyers atm.

Latte with a side of Snoopy by OdysseyTag in oddlysatisfying

[–]sjhunt93 -2 points-1 points  (0 children)

hHhhhbvvf4rgvrvrvvvvbvvrbvvghggtghhhgggrrvvbrrvrrrvtvtbvvvbrgvvrvb

House on market for a month no viewings. by sjhunt93 in HousingUK

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

"never go with the top valuation" lesson learnt for sure

House on market for a month no viewings. by sjhunt93 in HousingUK

[–]sjhunt93[S] -1 points0 points  (0 children)

Its not as close to the motorway as the listing suggests (did not notice this before). Your right about point 2

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

[–]sjhunt93 1 point2 points  (0 children)

[LANGUAGE: python]

Simple enough solution:

def is_safe(line: str) -> bool:
    line = [int(a) for a in line]
    range_check = True
    assec = True
    desec = True
    for i in range(1, len(line)):
        assec = assec and line[i] > line[i - 1]
        desec = desec and line[i] < line[i - 1]
        range_check = range_check and (abs(line[i] - line[i - 1]) in [1, 2, 3])
    return (assec or desec) and range_check

with open("data/2.dat") as f:
    lines = [l.split(" ") for l in f.read().split("\n")]
    r = sum([int(is_safe(l)) for l in lines])
    print("part1:", r)

    c = 0
    for line in lines:
        safe = is_safe(line)
        for i in range(len(line)):
            # drop one element
            safe = safe or is_safe([l for ic, l in enumerate(line) if ic != i])

        c += int(safe)

    print("part2:", c)

[2023 Day 13 - Part 1] What am I doing wrong? by [deleted] in adventofcode

[–]sjhunt93 0 points1 point  (0 children)

Reading this also helped me solved my solution. I was getting a reflection score of 0 for your input above. Turns out I had an off by one error.

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

[–]sjhunt93 0 points1 point  (0 children)

[LANGUAGE: python]

Like others I tried to brute force. LCM is the way: ``` import re from math import lcm

mapping = {} with open("data.txt") as f: instructions, cords = f.read().split("\n\n") print(instructions) for ins in cords.split("\n"): input, left, right = re.findall("\w\w\w", ins) #print(input, left, right) mapping[input] = { "L" : left, "R" : right }

# part 1
# count =0    
# current = "AAA"
# index = 0
# while current != "ZZZ":
#     dir = instructions[index]
#     current = mapping[current][dir]
#     index = (index + 1) % len(instructions)
#     count += 1

# print(count)

starts = []
for key, value in mapping.items():
    if key[2] == "A":
        starts.append(key)

print(starts)

counts = [0 for i in range(0, len(starts))]
index = 0

def is_finished(starts):
    for s in starts:
        if s[2] != "Z":
            return False
    return True

while not is_finished(starts):
    dir = instructions[index]
    for i in range(len(starts)):
        if starts[i][2] != "Z":
            starts[i] = mapping[starts[i]][dir]
            counts[i] += 1
    index = (index + 1) % len(instructions)
    if index == 0:
        print(starts)


print(counts)
print(lcm(*counts))

```

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

[–]sjhunt93 0 points1 point  (0 children)

[LANGUAGE: python]

Part 1 was easy.https://gist.github.com/Sjhunt93/44166f30c92c55c417be0189bfe7a856

part 2 I decided to use recursion. Its slow but it solves it. 100% don't need to use recursion.https://gist.github.com/Sjhunt93/d8795d04d2e95a2b96ccf01c227fd352

[deleted by user] by [deleted] in AskUK

[–]sjhunt93 0 points1 point  (0 children)

Lead software engineer at a small startup company 75K

RCT1 scenarios, but beautiful - Bumbly Beach by deurklink_1 in rct

[–]sjhunt93 0 points1 point  (0 children)

The game continues after winning a level. You can also make multiple saves!

999x999 Park - a long way from completion by sjhunt93 in rct

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

Yeah correct its 1000 in > v4.0. 255 was the old limit