Skip to content

Commit

Permalink
linitng and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Fadi88 committed Dec 24, 2024
1 parent e1dc25c commit 505193f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions 2024/day24/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,6 @@ def eval_loop(res, xs, ys):
return get_num(wires, "z")


def get_new_res(mapping, res):
rev_mapping = {v: k for k, v in mapping.items()}
new_res = {}
for d in res:
if re.match(r"z\d+", d):
num = int(d[1:])
if num in mapping:
pass
elif num in rev_mapping:
pass
new_res[d] = res[d]

return new_res


@profiler
def part_1():
with open(input_file) as f:
Expand Down

0 comments on commit 505193f

Please sign in to comment.