mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Fix sphinx/build_docs warnings for dynamic_programming (#12484)
* Fix sphinx/build_docs warnings for dynamic_programming * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix * Fix * Fix * Fix * Fix * Fix --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -8,9 +8,10 @@ from __future__ import annotations
|
||||
|
||||
def all_construct(target: str, word_bank: list[str] | None = None) -> list[list[str]]:
|
||||
"""
|
||||
returns the list containing all the possible
|
||||
combinations a string(target) can be constructed from
|
||||
the given list of substrings(word_bank)
|
||||
returns the list containing all the possible
|
||||
combinations a string(`target`) can be constructed from
|
||||
the given list of substrings(`word_bank`)
|
||||
|
||||
>>> all_construct("hello", ["he", "l", "o"])
|
||||
[['he', 'l', 'l', 'o']]
|
||||
>>> all_construct("purple",["purp","p","ur","le","purpl"])
|
||||
|
Reference in New Issue
Block a user