Skip to content

Commit

Permalink
[2019/15] add a comment to the bfs for p2
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlitGhost committed Jan 2, 2024
1 parent 3ffbc65 commit 30b5168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file added .aoc_tiles/tiles/2019/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions 2019/15/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def bfs(start: tuple, grid: Grid):
continue
visited.add(new_pos)
frontier.append(path + [new_pos])

# the last path to finish will be the longest,
# and therefore gives us our oxygen spread time
return path


Expand Down

0 comments on commit 30b5168

Please sign in to comment.