mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Set the Python file maximum line length to 88 characters (#2122)
* flake8 --max-line-length=88 * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -88,9 +88,11 @@ class BankersAlgorithm:
|
||||
This function builds an index control dictionary to track original ids/indices
|
||||
of processes when altered during execution of method "main"
|
||||
Return: {0: [a: int, b: int], 1: [c: int, d: int]}
|
||||
>>> BankersAlgorithm(test_claim_vector, test_allocated_res_table,
|
||||
>>> (BankersAlgorithm(test_claim_vector, test_allocated_res_table,
|
||||
... test_maximum_claim_table)._BankersAlgorithm__need_index_manager()
|
||||
{0: [1, 2, 0, 3], 1: [0, 1, 3, 1], 2: [1, 1, 0, 2], 3: [1, 3, 2, 0], 4: [2, 0, 0, 3]}
|
||||
... ) # doctest: +NORMALIZE_WHITESPACE
|
||||
{0: [1, 2, 0, 3], 1: [0, 1, 3, 1], 2: [1, 1, 0, 2], 3: [1, 3, 2, 0],
|
||||
4: [2, 0, 0, 3]}
|
||||
"""
|
||||
return {self.__need().index(i): i for i in self.__need()}
|
||||
|
||||
|
Reference in New Issue
Block a user