mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -129,9 +129,9 @@ def depth_first_search(
|
||||
|
||||
# If it is False we call dfs function again and we update the inputs
|
||||
depth_first_search(
|
||||
possible_board + [col],
|
||||
diagonal_right_collisions + [row - col],
|
||||
diagonal_left_collisions + [row + col],
|
||||
[*possible_board, col],
|
||||
[*diagonal_right_collisions, row - col],
|
||||
[*diagonal_left_collisions, row + col],
|
||||
boards,
|
||||
n,
|
||||
)
|
||||
|
@ -44,7 +44,7 @@ def create_state_space_tree(
|
||||
nums,
|
||||
max_sum,
|
||||
index + 1,
|
||||
path + [nums[index]],
|
||||
[*path, nums[index]],
|
||||
result,
|
||||
remaining_nums_sum - nums[index],
|
||||
)
|
||||
|
Reference in New Issue
Block a user