Skip to content

Commit

Permalink
Autoformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kopeć authored and mkopec87 committed Nov 24, 2023
1 parent c2457bd commit faf17e9
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/2021/day01/main2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def main():

increased = 0
for m in measurements[3:]:

prev_sum = sum(prev)

prev.popleft()
Expand Down
1 change: 0 additions & 1 deletion src/2021/day10/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def score_line(line):


def score_line2(line):

stack = deque()
for sign in line:
if is_opening(sign):
Expand Down
1 change: 0 additions & 1 deletion src/2022/day05/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def main():
stacks_part1 = [s.copy() for s in stacks]
stacks_part2 = [s.copy() for s in stacks]
for move in moves:

for _ in range(move.count):
item = stacks_part1[move.from_stack].pop()
stacks_part1[move.to_stack].append(item)
Expand Down
1 change: 0 additions & 1 deletion src/2022/day09/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def solve(moves, line_len):

for direction, count in moves:
for _ in range(count):

# move head
head_pos = node_to_pos[0]
if direction == "U":
Expand Down
1 change: 0 additions & 1 deletion src/2022/day17/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def drop_rock(chamber, directions, rocks):
x, y = chamber.get_rock_initial_position(rock)
falling = True
while falling:

# hot jet
direction = directions.next()
y2 = y + (1 if direction == Direction.RIGHT else -1)
Expand Down
1 change: 0 additions & 1 deletion src/2022/day20/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def list_to_string(initial_list: List[Number]) -> str:

def mix_list(initial_list: List[Number]) -> None:
for n in initial_list:

shift = n.value % (len(initial_list) - 1)

while shift > 0:
Expand Down
1 change: 0 additions & 1 deletion src/2022/day24/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ def a_star(start_state: State, end_pos: Tuple[int, ...], mazes) -> Tuple[int, St
queue.add(f_score[start_state], start_state)

while not queue.empty():

current_state = queue.pop_min()
if current_state.distance_to_end(end_pos) == 0:
return g_score[current_state], current_state
Expand Down

0 comments on commit faf17e9

Please sign in to comment.