Skip to content

Commit

Permalink
Add comments for day 8
Browse files Browse the repository at this point in the history
  • Loading branch information
starkindustries committed Dec 8, 2023
1 parent c7f3ab3 commit 5ed51da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 2023/08/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def solve(filename, part2=False):
dir_num = 0 if direction == "L" else 1
path = camelmap[path][dir_num]
steps += 1
print(*steps_arr)
print(steps_arr)
# expand list into args with '*', e.g. *steps_arr
# get least-common-multiple from all paths
result = math.lcm(*steps_arr)
print(result)

Expand Down

0 comments on commit 5ed51da

Please sign in to comment.