Formatting
This commit is contained in:
parent
f52f2bf1cf
commit
7c585ccafe
1 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ def expand_universe(universe: Universe, n: int):
|
|||
(gx, gy) = galaxy
|
||||
v = universe[galaxy]
|
||||
del universe[galaxy]
|
||||
universe[(gx+n, gy)] = v
|
||||
universe[(gx + n, gy)] = v
|
||||
|
||||
for src_row_y in reversed(sorted(expand_rows)):
|
||||
exp = [galaxy for galaxy in universe if galaxy[1] > src_row_y]
|
||||
|
@ -52,7 +52,7 @@ def expand_universe(universe: Universe, n: int):
|
|||
(gx, gy) = galaxy
|
||||
v = universe[galaxy]
|
||||
del universe[galaxy]
|
||||
universe[(gx, gy+n)] = v
|
||||
universe[(gx, gy + n)] = v
|
||||
|
||||
|
||||
def get_shortest_path_len(start: Coordinate, end: Coordinate) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue