mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +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:
@ -50,8 +50,8 @@ def get_pascal_triangle_unique_coefficients(depth: int) -> set[int]:
|
||||
coefficients = {1}
|
||||
previous_coefficients = [1]
|
||||
for _ in range(2, depth + 1):
|
||||
coefficients_begins_one = previous_coefficients + [0]
|
||||
coefficients_ends_one = [0] + previous_coefficients
|
||||
coefficients_begins_one = [*previous_coefficients, 0]
|
||||
coefficients_ends_one = [0, *previous_coefficients]
|
||||
previous_coefficients = []
|
||||
for x, y in zip(coefficients_begins_one, coefficients_ends_one):
|
||||
coefficients.add(x + y)
|
||||
|
Reference in New Issue
Block a user