mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 06:03:42 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f9fe6cc9a6
commit
2f60ff9674
|
@ -64,7 +64,7 @@ def generate_parenthesis(n: int) -> list[str]:
|
|||
Example 2:
|
||||
>>> generate_parenthesis(1)
|
||||
['()']
|
||||
|
||||
|
||||
Example 3:
|
||||
>>> generate_parenthesis(0)
|
||||
['']
|
||||
|
|
|
@ -66,7 +66,7 @@ def word_break(input_string: str, word_dict: set[str]) -> bool:
|
|||
|
||||
>>> word_break("catsandog", {"cats", "dog", "sand", "and", "cat"})
|
||||
False
|
||||
|
||||
|
||||
>>> word_break("applepenapple", {})
|
||||
False
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user