mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +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:
@ -34,7 +34,7 @@ def all_construct(target: str, word_bank: list[str] | None = None) -> list[list[
|
||||
# slice condition
|
||||
if target[i : i + len(word)] == word:
|
||||
new_combinations: list[list[str]] = [
|
||||
[word] + way for way in table[i]
|
||||
[word, *way] for way in table[i]
|
||||
]
|
||||
# adds the word to every combination the current position holds
|
||||
# now,push that combination to the table[i+len(word)]
|
||||
|
Reference in New Issue
Block a user